Merged in david_alessio/nuttx/bugfix/cpuload-missing-lf (pull request #1026)
add missing LF to cpuload Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
parent
28b13e4ba1
commit
5be824e0ea
@ -252,7 +252,7 @@ static ssize_t cpuload_read(FAR struct file *filep, FAR char *buffer,
|
|||||||
fracpart = 0;
|
fracpart = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
linesize = snprintf(attr->line, CPULOAD_LINELEN, "%3d.%01d%%",
|
linesize = snprintf(attr->line, CPULOAD_LINELEN, "%3d.%01d%%\n",
|
||||||
intpart, fracpart);
|
intpart, fracpart);
|
||||||
|
|
||||||
/* 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
Block a user