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:
cbaaadb
)
lib: resource-monitor: Fix wrong data type of pass_resource_monitor_get_value_uint
author
Chanwoo Choi
<cw00.choi@samsung.com>
Sun, 7 Aug 2022 20:05:12 +0000
(
05:05
+0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Tue, 9 Aug 2022 02:30:41 +0000
(11:30 +0900)
uint need to use '%u' instead of '%d'. Fix wrong data type format.
Change-Id: Ibec1b362cca3b1ad649ee1aedbf08368f1b1db24
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
lib/resource-monitor/resource-monitor.c
patch
|
blob
|
history
diff --git
a/lib/resource-monitor/resource-monitor.c
b/lib/resource-monitor/resource-monitor.c
index
594a8ed
..
5951465
100644
(file)
--- a/
lib/resource-monitor/resource-monitor.c
+++ b/
lib/resource-monitor/resource-monitor.c
@@
-614,7
+614,7
@@
int pass_resource_monitor_get_value_uint(int id, int resource_id, u_int64_t attr
}
buffer[buffer_len] = '\0';
- if (sscanf(buffer, "%d$%
d
$%d", &response_req, value, &ret) < 3)
+ if (sscanf(buffer, "%d$%
u
$%d", &response_req, value, &ret) < 3)
return -EINVAL;
if (response_req != REQUEST_GET_VALUE_UINT) {