projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
363de56
)
Commit
01b69068c91fcc90ed7dc0cdf7e1a7d0cb08af53
author
Jakob Gruber
<jakob.gruber@gmail.com>
Thu, 26 Jul 2012 10:46:49 +0000
(12:46 +0200)
committer
Jakob Gruber
<jakob.gruber@gmail.com>
Thu, 26 Jul 2012 12:40:46 +0000
(14:40 +0200)
Trying to (dis)connect an invalid IRQ is an error. Note that the
incorrect function name printed in avr_unconnect_irq has been corrected.
simavr/sim/sim_irq.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_irq.c
b/simavr/sim/sim_irq.c
index 68d218b134ec6580fd9af78f54dfd9d66c3f7d2d..2b346c747d2f116a858431f35d4dd5aee7cc9d97 100644
(file)
--- a/
simavr/sim/sim_irq.c
+++ b/
simavr/sim/sim_irq.c
@@
-217,7
+217,7
@@
avr_connect_irq(
avr_irq_t * dst)
{
if (!src || !dst || src == dst) {
-
printf("avr_connect_irq invalid irq %p/%p"
, src, dst);
+
fprintf(stderr, "error: %s invalid irq %p/%p", __FUNCTION__
, src, dst);
return;
}
avr_irq_hook_t *hook = src->hook;
@@
-238,7
+238,7
@@
avr_unconnect_irq(
avr_irq_hook_t *hook, *prev;
if (!src || !dst || src == dst) {
-
printf("error: avr_connect_irq invalid irq %p/%p", src, dst); fflush(stdou
t);
+
fprintf(stderr, "error: %s invalid irq %p/%p", __FUNCTION__, src, ds
t);
return;
}
hook = src->hook;