Merged in masayuki2009/nuttx.nuttx/bug_fix_by_sony (pull request #329)

procfs: Fix wrong member IDs are displayed when 'cat /proc/<pid>/group/stasus'.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Masayuki Ishikawa 2017-04-20 12:55:26 +00:00 committed by Gregory Nutt
commit e57fa0ef7e

View File

@ -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;