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