Skip to content

Commit

Permalink
ESP32: Fix format errors in platform/ESP32/Logging.cpp (#26496)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 authored and pull[bot] committed Nov 15, 2023
1 parent 47a44d8 commit 1081007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/ESP32/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void ENFORCE_FORMAT(3, 0) LogV(const char * module, uint8_t category, const char
{
case kLogCategory_Error: {
{
printf(LOG_COLOR_E "E (%u) %s: ", esp_log_timestamp(), tag);
printf(LOG_COLOR_E "E (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_ERROR, tag, msg, v);
printf(LOG_RESET_COLOR "\n");
}
Expand All @@ -40,7 +40,7 @@ void ENFORCE_FORMAT(3, 0) LogV(const char * module, uint8_t category, const char
case kLogCategory_Progress:
default: {
{
printf(LOG_COLOR_I "I (%u) %s: ", esp_log_timestamp(), tag);
printf(LOG_COLOR_I "I (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_INFO, tag, msg, v);
printf(LOG_RESET_COLOR "\n");
}
Expand All @@ -49,7 +49,7 @@ void ENFORCE_FORMAT(3, 0) LogV(const char * module, uint8_t category, const char

case kLogCategory_Detail: {
{
printf(LOG_COLOR_D "D (%u) %s: ", esp_log_timestamp(), tag);
printf(LOG_COLOR_D "D (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_DEBUG, tag, msg, v);
printf(LOG_RESET_COLOR "\n");
}
Expand Down

0 comments on commit 1081007

Please sign in to comment.