system: fix printf format errors in all system and cxx examples

This commit is contained in:
Marius Vikhammer
2022-12-09 15:04:55 +08:00
parent 12a069d593
commit f81cae4e1e
37 changed files with 64 additions and 68 deletions

View File

@@ -1,3 +1,2 @@
idf_component_register(SRCS "app_main.c"
INCLUDE_DIRS "")
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")

View File

@@ -13,6 +13,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <inttypes.h>
#include "sdkconfig.h"
#include "esp_log.h"
#include "esp_attr.h"
@@ -92,7 +93,7 @@ void app_main(void)
{
//Get the partition used for SPI1 erase operation
const esp_partition_t *part = s_get_partition();
ESP_LOGI(TAG, "found partition '%s' at offset 0x%x with size 0x%x", part->label, part->address, part->size);
ESP_LOGI(TAG, "found partition '%s' at offset 0x%"PRIx32" with size 0x%"PRIx32, part->label, part->address, part->size);
//Erase whole region
ESP_ERROR_CHECK(esp_flash_erase_region(part->flash_chip, part->address, part->size));