From: Michel Pollet Date: Sun, 2 Jun 2013 17:27:51 +0000 (+0100) Subject: irq: Add a warning if the name is NULL X-Git-Tag: v1.1~17 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=29218dcf897373eac0eb750b4e4a3e066e057840;p=sx%2Fsimavr.git irq: Add a warning if the name is NULL Names are not getting important, for the scripting project Signed-off-by: Michel Pollet --- 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); + } } }