This patch fixes the wrong format string of stat.load variable
from "%d" to "%u" because stat.load[] variable is unsigned integer.
Change-Id: Ic8d28782b36690242a3503f6967e9fd8bf550f11
Signed-off-by: Jinhee Choi <jh106.choi@samsung.com>
[cw00.choi: Add the patch description'
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
}
for (j = 0; j < res->cdata.num_cpus; j++) {
- ret = fscanf(fp_stats, "%d", &stats[i].load[j]);
+ ret = fscanf(fp_stats, "%u", &stats[i].load[j]);
if (ret < 0) {
fclose(fp_stats);
return -EIO;