diff --git a/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp b/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp index 808244a22e..9ccf859e0a 100644 --- a/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp +++ b/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp @@ -289,11 +289,7 @@ void SDL2DisplayWindow::RunLoop() SDL_Event event; int result = SDL_WaitEvent(&event); if (result == 0) - { - fprintf(stderr, "SDL_WaitEvent failed: "); - fprintf(stderr, SDL_GetError()); - fprintf(stderr, "\n"); - } + fprintf(stderr, "SDL_WaitEvent failed: %s\n", SDL_GetError()); DispatchEvent(event); } }