projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b90258
)
pass: hal: Fix wrong format string of variables in struct pass_cpu_stats
97/164597/1
author
Chanwoo Choi
<cw00.choi@samsung.com>
Wed, 20 Dec 2017 01:55:00 +0000
(10:55 +0900)
committer
Chanwoo 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
patch
|
blob
|
history
diff --git
a/src/pass/pass-hal.c
b/src/pass/pass-hal.c
index
aec3fd2
..
f9ddf36
100644
(file)
--- a/
src/pass/pass-hal.c
+++ b/
src/pass/pass-hal.c
@@
-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,