summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokesh <l.kasana@samsung.com>2019-08-27 11:33:56 +0530
committersaerome.kim <saerome.kim@samsung.com>2019-08-27 21:59:52 +0900
commit0363f82977d2c630b134763f664fe56f4f56b1de (patch)
tree0409a8999b874280630638d5bd27be10db4055c6
parentcde2745f9c562abbc806610fa41b9c50ee378e26 (diff)
downloaduser-awareness-0363f82977d2c630b134763f664fe56f4f56b1de.tar.gz
user-awareness-0363f82977d2c630b134763f664fe56f4f56b1de.tar.bz2
user-awareness-0363f82977d2c630b134763f664fe56f4f56b1de.zip
Checker: 'invalidprintfargtype_sint' DID: 35, 37, 38 Change-Id: Ib982638fbc2a5da85a25582221b3f0ed3e1d7e9b Signed-off-by: Lokesh <l.kasana@samsung.com>
-rw-r--r--packaging/capi-network-ua.spec2
-rw-r--r--test/uat-detections.c6
-rw-r--r--test/uat-devices.c12
3 files changed, 10 insertions, 10 deletions
diff --git a/packaging/capi-network-ua.spec b/packaging/capi-network-ua.spec
index 47b1e11..975cde6 100644
--- a/packaging/capi-network-ua.spec
+++ b/packaging/capi-network-ua.spec
@@ -1,6 +1,6 @@
Name: capi-network-ua
Summary: User Awareness Framework CAPI
-Version: 0.6.10
+Version: 0.6.11
Release: 1
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
diff --git a/test/uat-detections.c b/test/uat-detections.c
index 6242e70..956dea4 100644
--- a/test/uat-detections.c
+++ b/test/uat-detections.c
@@ -156,14 +156,14 @@ static int run_ua_get_detection_cycle(
ret = ua_get_detection_cycle(g_service_h, &cycle_value);
if (UA_ERROR_NONE == ret) {
- snprintf(cycle_time, sizeof(cycle_time), "%d", cycle_value);
+ snprintf(cycle_time, sizeof(cycle_time), "%u", cycle_value);
}
msg(" - ua_get_detection_cycle() ret: [0x%X] [%s]",
ret, uat_get_error_str(ret));
if (UA_ERROR_NONE == ret)
- msgb("Detection [cycle_time = %d]", cycle_value);
+ msgb("Detection [cycle_time = %u]", cycle_value);
return RET_SUCCESS;
}
@@ -206,7 +206,7 @@ static int run_ua_get_detection_window(
ret, uat_get_error_str(ret));
if (UA_ERROR_NONE == ret)
- msgb("Detection [window = %d]", window_value);
+ msgb("Detection [window = %u]", window_value);
return RET_SUCCESS;
}
diff --git a/test/uat-devices.c b/test/uat-devices.c
index 21d6732..fc2ec33 100644
--- a/test/uat-devices.c
+++ b/test/uat-devices.c
@@ -455,18 +455,18 @@ static void _update_device_info(void)
ret = ua_device_get_payload_service_id(g_device_h, &service_id);
if (UA_ERROR_NONE == ret)
- snprintf(g_payload_service_id, MENU_DATA_SIZE + 1, "%d",
- (unsigned char)service_id);
+ snprintf(g_payload_service_id, MENU_DATA_SIZE + 1, "%u",
+ (unsigned int)service_id);
ret = ua_device_get_payload_device_icon(g_device_h, &device_icon);
if (UA_ERROR_NONE == ret)
- snprintf(g_payload_device_icon, MENU_DATA_SIZE + 1, "%d",
- (unsigned char)device_icon);
+ snprintf(g_payload_device_icon, MENU_DATA_SIZE + 1, "%u",
+ (unsigned int)device_icon);
ret = ua_device_get_payload_purpose(g_device_h, &purpose);
if (UA_ERROR_NONE == ret)
- snprintf(g_payload_purpose, MENU_DATA_SIZE + 1, "%d",
- (unsigned char)purpose);
+ snprintf(g_payload_purpose, MENU_DATA_SIZE + 1, "%u",
+ (unsigned int)purpose);
ret = ua_device_get_payload_duid(g_device_h, &duid);
memset(g_payload_duid_str, 0, MENU_DATA_SIZE + 1);