add new line to /proc/*/loadavg snprintf format.

This commit is contained in:
Oki Minabe
2022-02-19 23:46:58 +09:00
committed by Abdelatif Guettouche
parent 484eb1795b
commit e9bd959425
+1 -1
View File
@@ -754,7 +754,7 @@ static ssize_t proc_loadavg(FAR struct proc_file_s *procfile,
}
linesize = procfs_snprintf(procfile->line, STATUS_LINELEN,
"%3" PRId32 ".%01" PRId32 "%%",
"%3" PRId32 ".%01" PRId32 "%%\n",
intpart, fracpart);
copysize = procfs_memcpy(procfile->line, linesize, buffer, buflen,
&offset);