mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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:
committed by
Gregory Nutt
parent
28b13e4ba1
commit
5be824e0ea
@@ -252,7 +252,7 @@ static ssize_t cpuload_read(FAR struct file *filep, FAR char *buffer,
|
||||
fracpart = 0;
|
||||
}
|
||||
|
||||
linesize = snprintf(attr->line, CPULOAD_LINELEN, "%3d.%01d%%",
|
||||
linesize = snprintf(attr->line, CPULOAD_LINELEN, "%3d.%01d%%\n",
|
||||
intpart, fracpart);
|
||||
|
||||
/* Save the linesize in case we are re-entered with f_pos > 0 */
|
||||
|
||||
Reference in New Issue
Block a user