fs/procfstcbinfo: minor bug about print address

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-04-01 12:23:30 +08:00 committed by Petro Karashchenko
parent 1b6ce6b4cf
commit b5fb93aefb
1 changed files with 1 additions and 1 deletions

View File

@ -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 */