summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2017-12-20 10:55:00 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2017-12-20 14:07:30 +0900
commit24f3382cfb59af89b86dba595ece062518d285a9 (patch)
treea8775c3ef3eb8ad23fb469adc7a1d51244a2a365
parent6b3c2aeca81e66fcb543acedbda2c7387d352652 (diff)
downloadpass-accepted/tizen_4.0_unified.tar.gz
pass-accepted/tizen_4.0_unified.tar.bz2
pass-accepted/tizen_4.0_unified.zip
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 <cw00.choi@samsung.com>
-rw-r--r--src/pass/pass-hal.c2
1 files changed, 1 insertions, 1 deletions
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,