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:
David Alessio 2019-08-26 19:41:20 +00:00 committed by Gregory Nutt
parent 28b13e4ba1
commit 5be824e0ea

View File

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