protocols/security: Remove -Wno-format compile option for examples

This commit is contained in:
Laukik Hase
2022-12-07 13:01:43 +05:30
parent 2e3c72a5d1
commit 184c09ea81
10 changed files with 13 additions and 14 deletions
@@ -1,4 +1,3 @@
idf_component_register(SRCS "app_main.c" "esp_local_ctrl_service.c"
INCLUDE_DIRS "."
EMBED_TXTFILES "certs/servercert.pem" "certs/prvtkey.pem")
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
@@ -11,6 +11,7 @@
#include <stdint.h>
#include <sys/param.h>
#include <string.h>
#include <inttypes.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
@@ -191,7 +192,7 @@ static esp_err_t set_property_values(size_t props_count,
break;
case PROP_TYPE_INT32: {
const int32_t *new_value = (const int32_t *) prop_values[i].data;
ESP_LOGI(TAG, "Setting %s value to %d", props[i].name, *new_value);
ESP_LOGI(TAG, "Setting %s value to %" PRId32, props[i].name, *new_value);
memcpy(props[i].ctx, new_value, sizeof(int32_t));
}
break;