From e97108344907c6a47548ee0f5872c881662ca2fd Mon Sep 17 00:00:00 2001 From: "Nobutaka.Toyoshima" Date: Mon, 28 Apr 2014 11:07:10 +0900 Subject: [PATCH] procfs: Fix wrong member IDs are displayed when 'cat /proc//group/stasus'. Jira: PDFW15IS-259 Signed-off-by: Masayuki Ishikawa --- fs/procfs/fs_procfsproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/procfs/fs_procfsproc.c b/fs/procfs/fs_procfsproc.c index c8824b9ca0..2cf0b7de0e 100644 --- a/fs/procfs/fs_procfsproc.c +++ b/fs/procfs/fs_procfsproc.c @@ -871,7 +871,7 @@ static ssize_t proc_groupstatus(FAR struct proc_file_s *procfile, for (i = 0; i < group->tg_nmembers; i++) { - linesize = snprintf(procfile->line, STATUS_LINELEN, " %d"); + linesize = snprintf(procfile->line, STATUS_LINELEN, " %d", group->tg_members[i]); copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset); totalsize += copysize;