From 72928cebcfdc7df529d844c6e770177a4aa98d9a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 19 Feb 2021 17:20:00 +0800 Subject: [PATCH] fs/procfs: Avoid the duplicated 0x prefix in pthread cmdline like this: ... 0x0x341de68c by removing "0x" from format string Signed-off-by: Xiang Xiao --- 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 9222d24102..08bdac2efd 100644 --- a/fs/procfs/fs_procfsproc.c +++ b/fs/procfs/fs_procfsproc.c @@ -689,7 +689,7 @@ static ssize_t proc_cmdline(FAR struct proc_file_s *procfile, { FAR struct pthread_tcb_s *ptcb = (FAR struct pthread_tcb_s *)tcb; - linesize = snprintf(procfile->line, STATUS_LINELEN, " 0x%p\n", + linesize = snprintf(procfile->line, STATUS_LINELEN, " %p\n", ptcb->arg); copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset);