diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2017-12-20 10:55:00 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2017-12-20 14:07:30 +0900 |
commit | 24f3382cfb59af89b86dba595ece062518d285a9 (patch) | |
tree | a8775c3ef3eb8ad23fb469adc7a1d51244a2a365 | |
parent | 6b3c2aeca81e66fcb543acedbda2c7387d352652 (diff) | |
download | pass-accepted/tizen_4.0_unified.tar.gz pass-accepted/tizen_4.0_unified.tar.bz2 pass-accepted/tizen_4.0_unified.zip |
pass: hal: Fix wrong format string of variables in struct pass_cpu_statstizen_4.0.IoT.p2_releasesubmit/tizen_4.0/20171220.050834accepted/tizen/4.0/unified/20171221.070810tizen_4.0_tvtizen_4.0accepted/tizen_4.0_unified
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.c | 2 |
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, |