forked from espressif/esp-idf
esp_http(s)_server: remove "Wno-format" cflag and fix formatting errors
This commit is contained in:
@@ -2,5 +2,3 @@ idf_component_register(SRCS "src/esp_https_ota.c"
|
||||
INCLUDE_DIRS "include"
|
||||
REQUIRES esp_http_client bootloader_support esp_app_format esp_event
|
||||
PRIV_REQUIRES log app_update)
|
||||
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <esp_ota_ops.h>
|
||||
#include <errno.h>
|
||||
#include <sys/param.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
ESP_EVENT_DEFINE_BASE(ESP_HTTPS_OTA_EVENT);
|
||||
|
||||
@@ -342,7 +343,7 @@ esp_err_t esp_https_ota_begin(const esp_https_ota_config_t *ota_config, esp_http
|
||||
err = ESP_FAIL;
|
||||
goto http_cleanup;
|
||||
}
|
||||
ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%x",
|
||||
ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%" PRIx32,
|
||||
https_ota_handle->update_partition->subtype, https_ota_handle->update_partition->address);
|
||||
|
||||
const int alloc_size = MAX(ota_config->http_config->buffer_size, DEFAULT_OTA_BUF_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user