mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
esp_pm: Fix string formatting type errors
This commit fixes a string formatting error in esp_pm with CONFIG_PM_PROFILING is enabled. Closes https://github.com/espressif/esp-idf/issues/10347
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "esp_attr.h"
|
||||
@@ -704,7 +705,7 @@ void esp_pm_impl_dump_stats(FILE* out)
|
||||
/* don't display light sleep mode if it's not enabled */
|
||||
continue;
|
||||
}
|
||||
fprintf(out, "%-8s %-3dM%-7s %-10lld %-2d%%\n",
|
||||
fprintf(out, "%-8s %-3"PRIu32"M%-7s %-10lld %-2d%%\n",
|
||||
s_mode_names[i],
|
||||
s_cpu_freq_by_mode[i].freq_mhz,
|
||||
"", //Empty space to align columns
|
||||
|
||||
Reference in New Issue
Block a user