From: Chanwoo Choi Date: Wed, 20 Dec 2017 01:55:00 +0000 (+0900) Subject: pass: hal: Fix wrong format string of variables in struct pass_cpu_stats X-Git-Tag: submit/tizen_4.0/20171220.050834^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24f3382cfb59af89b86dba595ece062518d285a9;p=platform%2Fcore%2Fsystem%2Fpass.git pass: hal: Fix wrong format string of variables in struct pass_cpu_stats This patch fixes the wrong format string of variables in the struct pass_cpu_stats from "%d" to "%u" because variables are unsigned integer. Change-Id: Iff5fceccd641a8146667e66322538464871f0e43 Signed-off-by: Chanwoo Choi --- diff --git a/src/pass/pass-hal.c b/src/pass/pass-hal.c index d969a5d..ba7e4e9 100644 --- a/src/pass/pass-hal.c +++ b/src/pass/pass-hal.c @@ -1024,7 +1024,7 @@ int pass_get_cpu_stats(struct pass_policy *policy) } for (i = 0; i < policy->num_pass_cpu_stats; i++) { - ret = fscanf(fp_stats, "%" SCNd64 "%d %d %d", + ret = fscanf(fp_stats, "%" SCNd64 "%u %u %u", &stats[i].time, &stats[i].freq, &stats[i].freq_new,