summaryrefslogtreecommitdiffstats
path: root/firmware/events.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-04-27 19:34:41 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-04-27 19:34:41 +0000
commitf4eb0ee53c7bbbe8b7397f36ec99b196d70466de (patch)
treeed2ef6471b1377d776c0a4d592428fcf5f132f44 /firmware/events.c
parentc5cd69e542d1722bd044ba616b5287594d441864 (diff)
downloadrockbox-f4eb0ee53c7bbbe8b7397f36ec99b196d70466de.tar.gz
rockbox-f4eb0ee53c7bbbe8b7397f36ec99b196d70466de.tar.bz2
rockbox-f4eb0ee53c7bbbe8b7397f36ec99b196d70466de.zip
Updated panicf in remove_event. Also fixed some comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17265 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/events.c')
-rw-r--r--firmware/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/events.c b/firmware/events.c
index 00c0099bb9..12f5ab1c8d 100644
--- a/firmware/events.c
+++ b/firmware/events.c
@@ -33,7 +33,7 @@ bool add_event(unsigned short id, bool oneshot, void (*handler))
{
int i;
- /* Chcek if the event already exists. */
+ /* Check if the event already exists. */
for (i = 0; i < MAX_SYS_EVENTS; i++)
{
if (events[i].callback == handler && events[i].id == id)
@@ -69,7 +69,7 @@ void remove_event(unsigned short id, void (*handler))
}
}
- panicf("event not found");
+ panicf("event %d not found", (int)id);
}
void send_event(unsigned short id, void *data)