summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/sdl
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-24 21:21:33 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-24 21:21:33 -0400
commit6099767a18d82e9ff8bdd701906e842f8a81d4a9 (patch)
tree3d781ea248980ee022de0374a26f3acae67901a9 /firmware/target/hosted/sdl
parent22eb2300b10768a63131d78b3607460b93dda2c5 (diff)
downloadrockbox-6099767a18d82e9ff8bdd701906e842f8a81d4a9.tar.gz
rockbox-6099767a18d82e9ff8bdd701906e842f8a81d4a9.tar.bz2
rockbox-6099767a18d82e9ff8bdd701906e842f8a81d4a9.zip
SDL: If our eventloop fails, log the reason!
Change-Id: I028eb118b7da2701b54fce639ee0dbbb1e5a85bc
Diffstat (limited to 'firmware/target/hosted/sdl')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index beb84ee77f..dea25bff27 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -295,7 +295,7 @@ void gui_message_loop(void)
do {
/* wait for the next event */
if(SDL_WaitEvent(&event) == 0) {
- printf("SDL_WaitEvent() error\n");
+ printf("SDL_WaitEvent(): %s\n", SDL_GetError());
return; /* error, out of here */
}