diff --git a/cores/esp32/Tone.cpp b/cores/esp32/Tone.cpp index ca69c10c13b..3bc96ab7034 100644 --- a/cores/esp32/Tone.cpp +++ b/cores/esp32/Tone.cpp @@ -28,7 +28,7 @@ static void tone_task(void*){ xQueueReceive(_tone_queue, &tone_msg, portMAX_DELAY); switch(tone_msg.tone_cmd){ case TONE_START: - log_d("Task received from queue TONE_START: _pin=%d, frequency=%u Hz, duration=%u ms", tone_msg.pin, tone_msg.frequency, tone_msg.duration); + log_d("Task received from queue TONE_START: _pin=%d, frequency=%u Hz, duration=%lu ms", tone_msg.pin, tone_msg.frequency, tone_msg.duration); log_d("Setup LED controll on channel %d", _channel); // ledcSetup(_channel, tone_msg.frequency, 11); @@ -118,7 +118,7 @@ void noTone(uint8_t _pin){ // duration - time in ms - how long will the signal be outputted. // If not provided, or 0 you must manually call noTone to end output void tone(uint8_t _pin, unsigned int frequency, unsigned long duration){ - log_d("_pin=%d, frequency=%u Hz, duration=%u ms", _pin, frequency, duration); + log_d("_pin=%d, frequency=%u Hz, duration=%lu ms", _pin, frequency, duration); if(tone_init()){ tone_msg_t tone_msg = { .tone_cmd = TONE_START, diff --git a/cores/esp32/esp32-hal-cpu.c b/cores/esp32/esp32-hal-cpu.c index d79803f6124..2939449c944 100644 --- a/cores/esp32/esp32-hal-cpu.c +++ b/cores/esp32/esp32-hal-cpu.c @@ -107,7 +107,7 @@ bool addApbChangeCallback(void * arg, apb_change_cb_t cb){ // look for duplicate callbacks while( (r != NULL ) && !((r->cb == cb) && ( r->arg == arg))) r = r->next; if (r) { - log_e("duplicate func=%08X arg=%08X",c->cb,c->arg); + log_e("duplicate func=%8p arg=%8p",c->cb,c->arg); free(c); xSemaphoreGive(apb_change_lock); return false; @@ -129,7 +129,7 @@ bool removeApbChangeCallback(void * arg, apb_change_cb_t cb){ // look for matching callback while( (r != NULL ) && !((r->cb == cb) && ( r->arg == arg))) r = r->next; if ( r == NULL ) { - log_e("not found func=%08X arg=%08X",cb,arg); + log_e("not found func=%8p arg=%8p",cb,arg); xSemaphoreGive(apb_change_lock); return false; }