Fix cppcheck 'invalidPrintfArgType_sint' warnings 60/253360/1
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 9 Feb 2021 06:54:18 +0000 (12:24 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 9 Feb 2021 06:54:18 +0000 (12:24 +0530)
Change-Id: I19cf070104c83102831472ac8415538976afda7f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
test/wifi_manager_test.c
tool/wifi_mgr_extension_ipconflict.c

index 26a3420..4edc2ef 100755 (executable)
@@ -1901,7 +1901,7 @@ int test_wifi_manager_get_ip_conflict_period()
                return -1;
        }
 
-       printf("Initial time = %d seconds!\n", initial_time);
+       printf("Initial time = %u seconds!\n", initial_time);
        printf("Successfully get the ip conflict detect period!\n");
        return 1;
 }
index f5838fe..57aa4dc 100755 (executable)
@@ -42,7 +42,7 @@ static int _test_extension_ipconflict_get_period(MManager *mm, struct menu_data
        msg(HR_SINGLE);
 
        if (ret == WIFI_MANAGER_ERROR_NONE)
-               msg(LOG_GREEN "Succeeded to get ip conflict period " LOG_CYAN "[%d]" LOG_END,
+               msg(LOG_GREEN "Succeeded to get ip conflict period " LOG_CYAN "[%u]" LOG_END,
                        period);
        else
                msg("Failed to get ip conflict period " LOG_RED "[%s]" LOG_END,