diff --git a/BasiliskII/src/SDL/video_sdl.cpp b/BasiliskII/src/SDL/video_sdl.cpp index d3e764bb..609323d0 100644 --- a/BasiliskII/src/SDL/video_sdl.cpp +++ b/BasiliskII/src/SDL/video_sdl.cpp @@ -1388,7 +1388,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in) int result = SDL_SetGammaRamp(red, green, blue); if (result < 0) { - printf("SDL_SetGammaRamp returned %d, SDL error:", result, SDL_GetError()); + printf("SDL_SetGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError()); } memcpy(last_gamma_red, red, 512); diff --git a/BasiliskII/src/SDL/video_sdl2.cpp b/BasiliskII/src/SDL/video_sdl2.cpp index d7694c77..697446c0 100644 --- a/BasiliskII/src/SDL/video_sdl2.cpp +++ b/BasiliskII/src/SDL/video_sdl2.cpp @@ -1765,7 +1765,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in) int result = SDL_SetWindowGammaRamp(sdl_window, red, green, blue); if (result < 0) { - printf("SDL_SetWindowGammaRamp returned %d, SDL error:", result, SDL_GetError()); + printf("SDL_SetWindowGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError()); } memcpy(last_gamma_red, red, 512);