From b5fb93aefbb296b87345eb62295ea6a5c39abf21 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 1 Apr 2022 12:23:30 +0800 Subject: [PATCH] fs/procfstcbinfo: minor bug about print address Signed-off-by: Jiuzhu Dong --- fs/procfs/fs_procfstcbinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/procfs/fs_procfstcbinfo.c b/fs/procfs/fs_procfstcbinfo.c index 4af35f9e537..3e70f955a68 100644 --- a/fs/procfs/fs_procfstcbinfo.c +++ b/fs/procfs/fs_procfstcbinfo.c @@ -195,7 +195,7 @@ static ssize_t tcbinfo_read(FAR struct file *filep, FAR char *buffer, if (filep->f_pos == 0) { linesize = procfs_snprintf(attr->line, TCBINFO_LINELEN, - "pointer %p size %d\n", g_tcbinfo, + "pointer %p size %d\n", &g_tcbinfo, sizeof(struct tcbinfo_s)); /* Save the linesize in case we are re-entered with f_pos > 0 */