mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Updated panicf in remove_event. Also fixed some comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c5cd69e542
commit
f4eb0ee53c
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue