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:
6b3c2ae
)
pass: hal: Fix wrong format string of variables in struct pass_cpu_stats
accepted/tizen_4.0_unified
tizen_4.0
tizen_4.0_tv
accepted/tizen/4.0/unified/20171221.070810
submit/tizen_4.0/20171220.050834
tizen_4.0.IoT.p2_release
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 05:07:30 +0000
(14:07 +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 d969a5d15f799f4ea2b5e777f0e2f0d5d5bbe884..ba7e4e947fcca5a0d76ecdb99caa1f1632cb27ea 100644
(file)
--- 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,