From 29218dcf897373eac0eb750b4e4a3e066e057840 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Sun, 2 Jun 2013 18:27:51 +0100 Subject: [PATCH] irq: Add a warning if the name is NULL Names are not getting important, for the scripting project Signed-off-by: Michel Pollet --- simavr/sim/sim_irq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simavr/sim/sim_irq.c b/simavr/sim/sim_irq.c index 2b346c7..16e3418 100644 --- a/simavr/sim/sim_irq.c +++ b/simavr/sim/sim_irq.c @@ -76,6 +76,9 @@ avr_init_irq( _avr_irq_pool_add(pool, &irq[i]); if (names && names[i]) irq[i].name = strdup(names[i]); + else { + printf("WARNING %s() with NULL name for irq %d.\n", __func__, irq[i].irq); + } } } -- 2.39.5