From 5be824e0ea9d2080fad865ca87247c4aae515e7e Mon Sep 17 00:00:00 2001 From: David Alessio Date: Mon, 26 Aug 2019 19:41:20 +0000 Subject: [PATCH] Merged in david_alessio/nuttx/bugfix/cpuload-missing-lf (pull request #1026) add missing LF to cpuload Approved-by: Gregory Nutt --- fs/procfs/fs_procfscpuload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/procfs/fs_procfscpuload.c b/fs/procfs/fs_procfscpuload.c index 11af96c34bd..975d66a4278 100644 --- a/fs/procfs/fs_procfscpuload.c +++ b/fs/procfs/fs_procfscpuload.c @@ -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 */