git: 0051a294c4a5 - stable/13 - linprocfs: Fix formatting of Uid and Gid lines

From: Edward Tomasz Napierala <trasz_at_FreeBSD.org>
Date: Fri, 18 Feb 2022 15:10:23 UTC
The branch stable/13 has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=0051a294c4a59134e6d0aa396496ecb19e38d010

commit 0051a294c4a59134e6d0aa396496ecb19e38d010
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-11-03 08:40:49 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2022-02-14 19:29:22 +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
    
    (cherry picked from commit 91be6286e2a7ddad6dcf8d653fcd3f2c0b53072f)
---
 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 d29bcda47ec0..a363644da744 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 */