1
0
Fork 0
forked from nuttx/nuttx-update

risc-v/espressif: Fix alert message in esp_setup_irq()

Correct the alert message in `esp_setup_irq()` if
irq number allocation fails, the parameter number is not
matched with format specifier.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2024-10-10 11:14:30 +08:00 committed by Xiang Xiao
parent e3b3a6145a
commit 20cba94a86

View file

@ -527,7 +527,7 @@ int esp_setup_irq(int source, irq_priority_t priority, int type)
if (cpuint < 0)
{
_alert("Unable to allocate CPU interrupt for source=%d\n",
priority, type);
source);
PANIC();
}