fs/procfstcbinfo: minor bug about print address
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
1b6ce6b4cf
commit
b5fb93aefb
|
@ -195,7 +195,7 @@ static ssize_t tcbinfo_read(FAR struct file *filep, FAR char *buffer,
|
||||||
if (filep->f_pos == 0)
|
if (filep->f_pos == 0)
|
||||||
{
|
{
|
||||||
linesize = procfs_snprintf(attr->line, TCBINFO_LINELEN,
|
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));
|
sizeof(struct tcbinfo_s));
|
||||||
|
|
||||||
/* Save the linesize in case we are re-entered with f_pos > 0 */
|
/* Save the linesize in case we are re-entered with f_pos > 0 */
|
||||||
|
|
Loading…
Reference in New Issue