From 24f3382cfb59af89b86dba595ece062518d285a9 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 20 Dec 2017 10:55:00 +0900 Subject: 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 --- src/pass/pass-hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3