summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);