Fix 64bit build error
[apps/native/ug-wifi-direct.git] / popup-wifidirect / src / wfd-app-util.c
index c61b9e3..18bd5cc 100644 (file)
@@ -113,7 +113,7 @@ static void _move_data_to_app_control(const char *key, const int type,
        size_t size = 0;
 
 
-       WFD_RET_IF(data == NULL || key == NULL || type == 0, "Invialid parameter!");
+       WFD_RET_IF(data == NULL || key == NULL || type == 0, "Invialid parameter!");
 
        app_control_h control = data;
 
@@ -126,7 +126,7 @@ static void _move_data_to_app_control(const char *key, const int type,
                        return;
                }
                snprintf(buff, size + 1, "%s", ((char*) ptr));
-               WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %d", key, buff, size);
+               WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %zu", key, buff, size);
 
                app_control_add_extra_data(control, key, buff);
                free(buff);
@@ -139,7 +139,7 @@ static void _move_data_to_app_control(const char *key, const int type,
                        return;
                }
                snprintf(buff, size + 1, "%s", ((char*) ptr));
-               WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %d", key, buff, size);
+               WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %zu", key, buff, size);
 
                app_control_add_extra_data(control, key, buff);
                free(buff);