pass: hal: Fix wrong format string of variables in struct pass_cpu_stats 97/164597/1
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Dec 2017 01:55:00 +0000 (10:55 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Dec 2017 01:58:05 +0000 (10:58 +0900)
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>
src/pass/pass-hal.c

index aec3fd2..f9ddf36 100644 (file)
@@ -1025,7 +1025,7 @@ int pass_get_cpu_stats(struct pass_resource *res)
        }
 
        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,