mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
system: fix printf format errors in all system and cxx examples
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
idf_component_register(SRCS "cmd_nvs.c"
|
||||
INCLUDE_DIRS .
|
||||
REQUIRES console nvs_flash)
|
||||
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||
|
||||
@@ -292,12 +292,12 @@ static esp_err_t get_value_from_nvs(const char *key, const char *str_type)
|
||||
} else if (type == NVS_TYPE_I32) {
|
||||
int32_t value;
|
||||
if ((err = nvs_get_i32(nvs, key, &value)) == ESP_OK) {
|
||||
printf("%d\n", value);
|
||||
printf("%"PRIi32"\n", value);
|
||||
}
|
||||
} else if (type == NVS_TYPE_U32) {
|
||||
uint32_t value;
|
||||
if ((err = nvs_get_u32(nvs, key, &value)) == ESP_OK) {
|
||||
printf("%u\n", value);
|
||||
printf("%"PRIu32"\n", value);
|
||||
}
|
||||
} else if (type == NVS_TYPE_I64) {
|
||||
int64_t value;
|
||||
|
||||
Reference in New Issue
Block a user