projects
/
simavr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
irq: Add a warning if the name is NULL
[simavr]
/
simavr
/
sim
/
sim_irq.c
diff --git
a/simavr/sim/sim_irq.c
b/simavr/sim/sim_irq.c
index
2b346c7
..
16e3418
100644
(file)
--- 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);
+ }
}
}