git: 91be6286e2a7 - main - linprocfs: Fix formatting of Uid and Gid lines

From: Edward Tomasz Napierala <trasz_at_FreeBSD.org>
Date: Wed, 03 Nov 2021 09:03:30 UTC
The branch main has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=91be6286e2a7ddad6dcf8d653fcd3f2c0b53072f

commit 91be6286e2a7ddad6dcf8d653fcd3f2c0b53072f
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-11-03 08:40:49 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2021-11-03 08:40:55 +0000

    linprocfs: Fix formatting of Uid and Gid lines
    
    The separator here should be tabs, not spaces.  This fixes a warning
    from chromium-browser on Bionic:
    
    [1022/162248.137612:ERROR:process_info_linux.cc(107)] format error: unrecognized Uid format
    
    Sponsored By:   EPSRC
    Differential Revision:  https://reviews.freebsd.org/D32612
---
 sys/compat/linprocfs/linprocfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 18dec7e01aae..66c6d1cf76ac 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -1089,12 +1089,12 @@ linprocfs_doprocstatus(PFS_FILL_ARGS)
 	sbuf_printf(sb, "Pid:\t%d\n",		p->p_pid);
 	sbuf_printf(sb, "PPid:\t%d\n",		kp.ki_ppid );
 	sbuf_printf(sb, "TracerPid:\t%d\n",	kp.ki_tracer );
-	sbuf_printf(sb, "Uid:\t%d %d %d %d\n",	p->p_ucred->cr_ruid,
+	sbuf_printf(sb, "Uid:\t%d\t%d\t%d\t%d\n", p->p_ucred->cr_ruid,
 						p->p_ucred->cr_uid,
 						p->p_ucred->cr_svuid,
 						/* FreeBSD doesn't have fsuid */
 						p->p_ucred->cr_uid);
-	sbuf_printf(sb, "Gid:\t%d %d %d %d\n",	p->p_ucred->cr_rgid,
+	sbuf_printf(sb, "Gid:\t%d\t%d\t%d\t%d\n", p->p_ucred->cr_rgid,
 						p->p_ucred->cr_gid,
 						p->p_ucred->cr_svgid,
 						/* FreeBSD doesn't have fsgid */