diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci index d4e4f0d09..83f8165a6 100644 --- a/build-scripts/SDL_migration.cocci +++ b/build-scripts/SDL_migration.cocci @@ -3159,3 +3159,23 @@ typedef SDL_Colour, SDL_Color; @@ - SDLK_QUOTEDBL + SDLK_DBLAPOSTROPHE +@@ +@@ +- SDL_LogSetAllPriority ++ SDL_SetLogPriorities + (...) +@@ +@@ +- SDL_LogSetPriority ++ SDL_SetLogPriority + (...) +@@ +@@ +- SDL_LogGetPriority ++ SDL_GetLogPriority + (...) +@@ +@@ +- SDL_LogResetPriorities ++ SDL_ResetLogPriorities + (...) diff --git a/docs/README-migration.md b/docs/README-migration.md index bb85f65d7..1c9c8ef07 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -918,7 +918,11 @@ The following macros have been removed: The following functions have been renamed: * SDL_LogGetOutputFunction() => SDL_GetLogOutputFunction() +* SDL_LogGetPriority() => SDL_GetLogPriority() +* SDL_LogResetPriorities() => SDL_ResetLogPriorities() +* SDL_LogSetAllPriority() => SDL_SetLogPriorities() * SDL_LogSetOutputFunction() => SDL_SetLogOutputFunction() +* SDL_LogSetPriority() => SDL_SetLogPriority() ## SDL_main.h diff --git a/include/SDL3/SDL_log.h b/include/SDL3/SDL_log.h index 5fe930c86..d2cc1a18b 100644 --- a/include/SDL3/SDL_log.h +++ b/include/SDL3/SDL_log.h @@ -26,7 +26,7 @@ * * By default logs are quiet, but if you're debugging SDL you might want: * - * SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN); + * SDL_SetLogPriorities(SDL_LOG_PRIORITY_WARN); * * Here's where the messages go on different platforms: * @@ -114,10 +114,10 @@ typedef enum SDL_LogPriority * * \since This function is available since SDL 3.0.0. * - * \sa SDL_LogResetPriorities - * \sa SDL_LogSetPriority + * \sa SDL_ResetLogPriorities + * \sa SDL_SetLogPriority */ -extern DECLSPEC void SDLCALL SDL_LogSetAllPriority(SDL_LogPriority priority); +extern DECLSPEC void SDLCALL SDL_SetLogPriorities(SDL_LogPriority priority); /** * Set the priority of a particular log category. @@ -127,11 +127,11 @@ extern DECLSPEC void SDLCALL SDL_LogSetAllPriority(SDL_LogPriority priority); * * \since This function is available since SDL 3.0.0. * - * \sa SDL_LogGetPriority - * \sa SDL_LogResetPriorities - * \sa SDL_LogSetAllPriority + * \sa SDL_GetLogPriority + * \sa SDL_ResetLogPriorities + * \sa SDL_SetLogPriorities */ -extern DECLSPEC void SDLCALL SDL_LogSetPriority(int category, +extern DECLSPEC void SDLCALL SDL_SetLogPriority(int category, SDL_LogPriority priority); /** @@ -142,9 +142,9 @@ extern DECLSPEC void SDLCALL SDL_LogSetPriority(int category, * * \since This function is available since SDL 3.0.0. * - * \sa SDL_LogSetPriority + * \sa SDL_SetLogPriority */ -extern DECLSPEC SDL_LogPriority SDLCALL SDL_LogGetPriority(int category); +extern DECLSPEC SDL_LogPriority SDLCALL SDL_GetLogPriority(int category); /** * Reset all priorities to default. @@ -153,10 +153,10 @@ extern DECLSPEC SDL_LogPriority SDLCALL SDL_LogGetPriority(int category); * * \since This function is available since SDL 3.0.0. * - * \sa SDL_LogSetAllPriority - * \sa SDL_LogSetPriority + * \sa SDL_SetLogPriorities + * \sa SDL_SetLogPriority */ -extern DECLSPEC void SDLCALL SDL_LogResetPriorities(void); +extern DECLSPEC void SDLCALL SDL_ResetLogPriorities(void); /** * Log a message with SDL_LOG_CATEGORY_APPLICATION and SDL_LOG_PRIORITY_INFO. diff --git a/include/SDL3/SDL_oldnames.h b/include/SDL3/SDL_oldnames.h index b98536230..c345acceb 100644 --- a/include/SDL3/SDL_oldnames.h +++ b/include/SDL3/SDL_oldnames.h @@ -360,7 +360,11 @@ /* ##SDL_log.h */ #define SDL_LogGetOutputFunction SDL_GetLogOutputFunction +#define SDL_LogGetPriority SDL_GetLogPriority +#define SDL_LogResetPriorities SDL_ResetLogPriorities +#define SDL_LogSetAllPriority SDL_SetLogPriorities #define SDL_LogSetOutputFunction SDL_SetLogOutputFunction +#define SDL_LogSetPriority SDL_SetLogPriority /* ##SDL_mouse.h */ #define SDL_FreeCursor SDL_DestroyCursor @@ -870,7 +874,11 @@ /* ##SDL_log.h */ #define SDL_LogGetOutputFunction SDL_LogGetOutputFunction_renamed_SDL_GetLogOutputFunction +#define SDL_LogGetPriority SDL_LogGetPriority_renamed_SDL_GetLogPriority +#define SDL_LogResetPriorities SDL_LogResetPriorities_renamed_SDL_ResetLogPriorities +#define SDL_LogSetAllPriority SDL_LogSetAllPriority_renamed_SDL_SetLogPriorities #define SDL_LogSetOutputFunction SDL_LogSetOutputFunction_renamed_SDL_SetLogOutputFunction +#define SDL_LogSetPriority SDL_LogSetPriority_renamed_SDL_SetLogPriority /* ##SDL_mouse.h */ #define SDL_FreeCursor SDL_FreeCursor_renamed_SDL_DestroyCursor diff --git a/src/SDL_error.c b/src/SDL_error.c index 0ce4a95f7..679a06769 100644 --- a/src/SDL_error.c +++ b/src/SDL_error.c @@ -50,7 +50,7 @@ int SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) } } - if (SDL_LogGetPriority(SDL_LOG_CATEGORY_ERROR) <= SDL_LOG_PRIORITY_DEBUG) { + if (SDL_GetLogPriority(SDL_LOG_CATEGORY_ERROR) <= SDL_LOG_PRIORITY_DEBUG) { /* If we are in debug mode, print out the error message */ SDL_LogDebug(SDL_LOG_CATEGORY_ERROR, "%s", error->str); } diff --git a/src/SDL_log.c b/src/SDL_log.c index 2baf16a0f..eef32b350 100644 --- a/src/SDL_log.c +++ b/src/SDL_log.c @@ -117,14 +117,14 @@ void SDL_InitLog(void) void SDL_QuitLog(void) { - SDL_LogResetPriorities(); + SDL_ResetLogPriorities(); if (log_function_mutex) { SDL_DestroyMutex(log_function_mutex); log_function_mutex = NULL; } } -void SDL_LogSetAllPriority(SDL_LogPriority priority) +void SDL_SetLogPriorities(SDL_LogPriority priority) { SDL_LogLevel *entry; @@ -136,7 +136,7 @@ void SDL_LogSetAllPriority(SDL_LogPriority priority) SDL_forced_priority_level = priority; } -void SDL_LogSetPriority(int category, SDL_LogPriority priority) +void SDL_SetLogPriority(int category, SDL_LogPriority priority) { SDL_LogLevel *entry; @@ -273,7 +273,7 @@ static SDL_LogPriority SDL_GetDefaultLogPriority(int category) } } -SDL_LogPriority SDL_LogGetPriority(int category) +SDL_LogPriority SDL_GetLogPriority(int category) { SDL_LogLevel *entry; @@ -290,7 +290,7 @@ SDL_LogPriority SDL_LogGetPriority(int category) return SDL_GetDefaultLogPriority(category); } -void SDL_LogResetPriorities(void) +void SDL_ResetLogPriorities(void) { SDL_LogLevel *entry; @@ -406,7 +406,7 @@ void SDL_LogMessageV(int category, SDL_LogPriority priority, SDL_PRINTF_FORMAT_S } /* See if we want to do anything with this message */ - if (priority < SDL_LogGetPriority(category)) { + if (priority < SDL_GetLogPriority(category)) { return; } diff --git a/src/dynapi/SDL_dynapi.sym b/src/dynapi/SDL_dynapi.sym index 919998f84..b8d8d266f 100644 --- a/src/dynapi/SDL_dynapi.sym +++ b/src/dynapi/SDL_dynapi.sym @@ -555,13 +555,13 @@ SDL3_0.0.0 { SDL_LogCritical; SDL_LogDebug; SDL_LogError; - SDL_LogGetPriority; + SDL_GetLogPriority; SDL_LogInfo; SDL_LogMessage; SDL_LogMessageV; - SDL_LogResetPriorities; - SDL_LogSetAllPriority; - SDL_LogSetPriority; + SDL_ResetLogPriorities; + SDL_SetLogPriorities; + SDL_SetLogPriority; SDL_LogVerbose; SDL_LogWarn; SDL_MapRGB; diff --git a/src/dynapi/SDL_dynapi_overrides.h b/src/dynapi/SDL_dynapi_overrides.h index 335134bfb..9d4d6415d 100644 --- a/src/dynapi/SDL_dynapi_overrides.h +++ b/src/dynapi/SDL_dynapi_overrides.h @@ -580,13 +580,13 @@ #define SDL_LogCritical SDL_LogCritical_REAL #define SDL_LogDebug SDL_LogDebug_REAL #define SDL_LogError SDL_LogError_REAL -#define SDL_LogGetPriority SDL_LogGetPriority_REAL +#define SDL_GetLogPriority SDL_GetLogPriority_REAL #define SDL_LogInfo SDL_LogInfo_REAL #define SDL_LogMessage SDL_LogMessage_REAL #define SDL_LogMessageV SDL_LogMessageV_REAL -#define SDL_LogResetPriorities SDL_LogResetPriorities_REAL -#define SDL_LogSetAllPriority SDL_LogSetAllPriority_REAL -#define SDL_LogSetPriority SDL_LogSetPriority_REAL +#define SDL_ResetLogPriorities SDL_ResetLogPriorities_REAL +#define SDL_SetLogPriorities SDL_SetLogPriorities_REAL +#define SDL_SetLogPriority SDL_SetLogPriority_REAL #define SDL_LogVerbose SDL_LogVerbose_REAL #define SDL_LogWarn SDL_LogWarn_REAL #define SDL_MapRGB SDL_MapRGB_REAL diff --git a/src/dynapi/SDL_dynapi_procs.h b/src/dynapi/SDL_dynapi_procs.h index a764c8df6..26a022388 100644 --- a/src/dynapi/SDL_dynapi_procs.h +++ b/src/dynapi/SDL_dynapi_procs.h @@ -606,11 +606,11 @@ SDL_DYNAPI_PROC(void,SDL_LockSpinlock,(SDL_SpinLock *a),(a),) SDL_DYNAPI_PROC(int,SDL_LockSurface,(SDL_Surface *a),(a),return) SDL_DYNAPI_PROC(int,SDL_LockTexture,(SDL_Texture *a, const SDL_Rect *b, void **c, int *d),(a,b,c,d),return) SDL_DYNAPI_PROC(int,SDL_LockTextureToSurface,(SDL_Texture *a, const SDL_Rect *b, SDL_Surface **c),(a,b,c),return) -SDL_DYNAPI_PROC(SDL_LogPriority,SDL_LogGetPriority,(int a),(a),return) +SDL_DYNAPI_PROC(SDL_LogPriority,SDL_GetLogPriority,(int a),(a),return) SDL_DYNAPI_PROC(void,SDL_LogMessageV,(int a, SDL_LogPriority b, SDL_PRINTF_FORMAT_STRING const char *c, va_list d),(a,b,c,d),) -SDL_DYNAPI_PROC(void,SDL_LogResetPriorities,(void),(),) -SDL_DYNAPI_PROC(void,SDL_LogSetAllPriority,(SDL_LogPriority a),(a),) -SDL_DYNAPI_PROC(void,SDL_LogSetPriority,(int a, SDL_LogPriority b),(a,b),) +SDL_DYNAPI_PROC(void,SDL_ResetLogPriorities,(void),(),) +SDL_DYNAPI_PROC(void,SDL_SetLogPriorities,(SDL_LogPriority a),(a),) +SDL_DYNAPI_PROC(void,SDL_SetLogPriority,(int a, SDL_LogPriority b),(a,b),) SDL_DYNAPI_PROC(Uint32,SDL_MapRGB,(const SDL_PixelFormat *a, Uint8 b, Uint8 c, Uint8 d),(a,b,c,d),return) SDL_DYNAPI_PROC(Uint32,SDL_MapRGBA,(const SDL_PixelFormat *a, Uint8 b, Uint8 c, Uint8 d, Uint8 e),(a,b,c,d,e),return) SDL_DYNAPI_PROC(int,SDL_MaximizeWindow,(SDL_Window *a),(a),return) diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index 684b2837a..8a9fbf193 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -181,31 +181,31 @@ int SDLTest_CommonArg(SDLTest_CommonState *state, int index) return -1; } if (SDL_strcasecmp(argv[index], "all") == 0) { - SDL_LogSetAllPriority(SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriorities(SDL_LOG_PRIORITY_VERBOSE); return 2; } if (SDL_strcasecmp(argv[index], "error") == 0) { - SDL_LogSetPriority(SDL_LOG_CATEGORY_ERROR, SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriority(SDL_LOG_CATEGORY_ERROR, SDL_LOG_PRIORITY_VERBOSE); return 2; } if (SDL_strcasecmp(argv[index], "system") == 0) { - SDL_LogSetPriority(SDL_LOG_CATEGORY_SYSTEM, SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriority(SDL_LOG_CATEGORY_SYSTEM, SDL_LOG_PRIORITY_VERBOSE); return 2; } if (SDL_strcasecmp(argv[index], "audio") == 0) { - SDL_LogSetPriority(SDL_LOG_CATEGORY_AUDIO, SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriority(SDL_LOG_CATEGORY_AUDIO, SDL_LOG_PRIORITY_VERBOSE); return 2; } if (SDL_strcasecmp(argv[index], "video") == 0) { - SDL_LogSetPriority(SDL_LOG_CATEGORY_VIDEO, SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriority(SDL_LOG_CATEGORY_VIDEO, SDL_LOG_PRIORITY_VERBOSE); return 2; } if (SDL_strcasecmp(argv[index], "render") == 0) { - SDL_LogSetPriority(SDL_LOG_CATEGORY_RENDER, SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriority(SDL_LOG_CATEGORY_RENDER, SDL_LOG_PRIORITY_VERBOSE); return 2; } if (SDL_strcasecmp(argv[index], "input") == 0) { - SDL_LogSetPriority(SDL_LOG_CATEGORY_INPUT, SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriority(SDL_LOG_CATEGORY_INPUT, SDL_LOG_PRIORITY_VERBOSE); return 2; } return -1; diff --git a/test/checkkeys.c b/test/checkkeys.c index 6c1cefba1..e0baa5e05 100644 --- a/test/checkkeys.c +++ b/test/checkkeys.c @@ -247,7 +247,7 @@ int main(int argc, char *argv[]) state->window_title = "CheckKeys Test"; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/checkkeysthreads.c b/test/checkkeysthreads.c index 4a1c08def..6630f17c0 100644 --- a/test/checkkeysthreads.c +++ b/test/checkkeysthreads.c @@ -252,7 +252,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/loopwave.c b/test/loopwave.c index 5ff015119..c75677390 100644 --- a/test/loopwave.c +++ b/test/loopwave.c @@ -57,7 +57,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testatomic.c b/test/testatomic.c index c2cca7428..d82559ad3 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -706,7 +706,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testaudiocapture.c b/test/testaudiocapture.c index a1a88be2b..ba5cac8d4 100644 --- a/test/testaudiocapture.c +++ b/test/testaudiocapture.c @@ -41,7 +41,7 @@ int SDL_AppInit(void **appstate, int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testaudiohotplug.c b/test/testaudiohotplug.c index 79bb14d31..12b3a4510 100644 --- a/test/testaudiohotplug.c +++ b/test/testaudiohotplug.c @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testaudioinfo.c b/test/testaudioinfo.c index 4ac371c01..270e10603 100644 --- a/test/testaudioinfo.c +++ b/test/testaudioinfo.c @@ -65,7 +65,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testaudiostreamdynamicresample.c b/test/testaudiostreamdynamicresample.c index 1db69ecf3..5a83bea76 100644 --- a/test/testaudiostreamdynamicresample.c +++ b/test/testaudiostreamdynamicresample.c @@ -377,7 +377,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testcamera.c b/test/testcamera.c index 25cbd0914..e5fbd5c48 100644 --- a/test/testcamera.c +++ b/test/testcamera.c @@ -38,7 +38,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { return -1; @@ -58,7 +58,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) return -1; } - SDL_LogSetAllPriority(SDL_LOG_PRIORITY_VERBOSE); + SDL_SetLogPriorities(SDL_LOG_PRIORITY_VERBOSE); renderer = state->renderers[0]; if (!renderer) { diff --git a/test/testcontroller.c b/test/testcontroller.c index 74b7a1355..600674bf2 100644 --- a/test/testcontroller.c +++ b/test/testcontroller.c @@ -1961,7 +1961,7 @@ int main(int argc, char *argv[]) SDL_SetHint(SDL_HINT_JOYSTICK_LINUX_DEADZONES, "1"); /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testcustomcursor.c b/test/testcustomcursor.c index ba0cab050..813c6a48a 100644 --- a/test/testcustomcursor.c +++ b/test/testcustomcursor.c @@ -343,7 +343,7 @@ int main(int argc, char *argv[]) SDL_Cursor *cursor; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Initialize test framework */ state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO); diff --git a/test/testdialog.c b/test/testdialog.c index 378cc6d6c..d5e936542 100644 --- a/test/testdialog.c +++ b/test/testdialog.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) { } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testdisplayinfo.c b/test/testdisplayinfo.c index 81c6f709f..fa9ed7b43 100644 --- a/test/testdisplayinfo.c +++ b/test/testdisplayinfo.c @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testdraw.c b/test/testdraw.c index 25408cebc..145893758 100644 --- a/test/testdraw.c +++ b/test/testdraw.c @@ -222,7 +222,7 @@ int main(int argc, char *argv[]) int i; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Initialize parameters */ num_objects = NUM_OBJECTS; diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c index fb3b32d92..45f37a468 100644 --- a/test/testdrawchessboard.c +++ b/test/testdrawchessboard.c @@ -112,7 +112,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testdropfile.c b/test/testdropfile.c index 0c0bfca74..6b5ce539c 100644 --- a/test/testdropfile.c +++ b/test/testdropfile.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); for (i = 1; i < argc;) { int consumed; diff --git a/test/testerror.c b/test/testerror.c index 317140375..5ceca0a3e 100644 --- a/test/testerror.c +++ b/test/testerror.c @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testffmpeg.c b/test/testffmpeg.c index db8025f4e..e2fd85f7e 100644 --- a/test/testffmpeg.c +++ b/test/testffmpeg.c @@ -1323,7 +1323,7 @@ int main(int argc, char *argv[]) state = SDLTest_CommonCreateState(argv, 0); /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Log ffmpeg messages */ av_log_set_callback( av_log_callback ); diff --git a/test/testfile.c b/test/testfile.c index 30e41844e..a2eab48f8 100644 --- a/test/testfile.c +++ b/test/testfile.c @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testfilesystem.c b/test/testfilesystem.c index dd4cf017b..e975b19a6 100644 --- a/test/testfilesystem.c +++ b/test/testfilesystem.c @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testgeometry.c b/test/testgeometry.c index ebfe206df..1d9ad1822 100644 --- a/test/testgeometry.c +++ b/test/testgeometry.c @@ -196,7 +196,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); for (i = 1; i < argc;) { int consumed; diff --git a/test/testgl.c b/test/testgl.c index e70172b8a..e4482dc72 100644 --- a/test/testgl.c +++ b/test/testgl.c @@ -234,7 +234,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); for (i = 1; i < argc;) { int consumed; diff --git a/test/testgles.c b/test/testgles.c index 45ff614b6..25829391d 100644 --- a/test/testgles.c +++ b/test/testgles.c @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); for (i = 1; i < argc;) { int consumed; diff --git a/test/testhaptic.c b/test/testhaptic.c index e4ab85daf..14a085802 100644 --- a/test/testhaptic.c +++ b/test/testhaptic.c @@ -50,7 +50,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { int consumed; diff --git a/test/testhittesting.c b/test/testhittesting.c index 4de043ad1..3fc8b1c23 100644 --- a/test/testhittesting.c +++ b/test/testhittesting.c @@ -87,7 +87,7 @@ int main(int argc, char **argv) state->window_flags = SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testhotplug.c b/test/testhotplug.c index ac61ec9ea..adf15ab68 100644 --- a/test/testhotplug.c +++ b/test/testhotplug.c @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); diff --git a/test/testiconv.c b/test/testiconv.c index 8bea7f589..be6774d88 100644 --- a/test/testiconv.c +++ b/test/testiconv.c @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testime.c b/test/testime.c index e155d4799..767f9be63 100644 --- a/test/testime.c +++ b/test/testime.c @@ -637,7 +637,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testintersections.c b/test/testintersections.c index 4dd6f95c3..bb5e69d55 100644 --- a/test/testintersections.c +++ b/test/testintersections.c @@ -299,7 +299,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); for (i = 1; i < argc;) { int consumed; diff --git a/test/testkeys.c b/test/testkeys.c index 88f75050c..cfc8a96d1 100644 --- a/test/testkeys.c +++ b/test/testkeys.c @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testloadso.c b/test/testloadso.c index fbd3fcc2b..ca89691c9 100644 --- a/test/testloadso.c +++ b/test/testloadso.c @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testlocale.c b/test/testlocale.c index b2e043345..d86aead83 100644 --- a/test/testlocale.c +++ b/test/testlocale.c @@ -45,7 +45,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testlock.c b/test/testlock.c index 34e9261b0..28baa522f 100644 --- a/test/testlock.c +++ b/test/testlock.c @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { int consumed; diff --git a/test/testmanymouse.c b/test/testmanymouse.c index 66b86a490..c12b239d8 100644 --- a/test/testmanymouse.c +++ b/test/testmanymouse.c @@ -502,7 +502,7 @@ int main(int argc, char *argv[]) int i; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Log all events, including mouse motion */ SDL_SetHint(SDL_HINT_EVENT_LOGGING, "2"); diff --git a/test/testmessage.c b/test/testmessage.c index 76ee074c2..6bd4254e0 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testmodal.c b/test/testmodal.c index 0313df170..2b2a2b545 100644 --- a/test/testmodal.c +++ b/test/testmodal.c @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testmouse.c b/test/testmouse.c index 3382764d7..1aa40cc34 100644 --- a/test/testmouse.c +++ b/test/testmouse.c @@ -289,7 +289,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testmultiaudio.c b/test/testmultiaudio.c index da8df08f6..7c2755dfc 100644 --- a/test/testmultiaudio.c +++ b/test/testmultiaudio.c @@ -149,7 +149,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testnative.c b/test/testnative.c index 483408b21..e3cf5e9a0 100644 --- a/test/testnative.c +++ b/test/testnative.c @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testoffscreen.c b/test/testoffscreen.c index a69a0f757..f2975ea9a 100644 --- a/test/testoffscreen.c +++ b/test/testoffscreen.c @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testplatform.c b/test/testplatform.c index 07c212f9f..c760547b6 100644 --- a/test/testplatform.c +++ b/test/testplatform.c @@ -452,7 +452,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testpopup.c b/test/testpopup.c index 2ebf71d3f..44e785b33 100644 --- a/test/testpopup.c +++ b/test/testpopup.c @@ -249,7 +249,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testpower.c b/test/testpower.c index 715c6aef6..2dcf33f55 100644 --- a/test/testpower.c +++ b/test/testpower.c @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testrelative.c b/test/testrelative.c index 01612ac28..ec91e3110 100644 --- a/test/testrelative.c +++ b/test/testrelative.c @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) { /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Initialize test framework */ state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO); diff --git a/test/testrendercopyex.c b/test/testrendercopyex.c index cea7a1aa5..55fd9b852 100644 --- a/test/testrendercopyex.c +++ b/test/testrendercopyex.c @@ -125,7 +125,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (!SDLTest_CommonDefaultArgs(state, argc, argv) || !SDLTest_CommonInit(state)) { SDLTest_CommonQuit(state); diff --git a/test/testrendertarget.c b/test/testrendertarget.c index d57ce602f..c01ef11c8 100644 --- a/test/testrendertarget.c +++ b/test/testrendertarget.c @@ -219,7 +219,7 @@ int main(int argc, char *argv[]) Uint64 then, now; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Initialize test framework */ state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO); diff --git a/test/testresample.c b/test/testresample.c index 1eebe8bb2..19ed75617 100644 --- a/test/testresample.c +++ b/test/testresample.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); SDL_zero(cvtspec); diff --git a/test/testrumble.c b/test/testrumble.c index c58ccecf1..44f5b9cbf 100644 --- a/test/testrumble.c +++ b/test/testrumble.c @@ -49,7 +49,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); name = NULL; index = -1; diff --git a/test/testrwlock.c b/test/testrwlock.c index 51e49338b..0569ada16 100644 --- a/test/testrwlock.c +++ b/test/testrwlock.c @@ -74,7 +74,7 @@ int main(int argc, char *argv[]) SDL_AtomicSet(&doterminate, 0); /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { int consumed; diff --git a/test/testscale.c b/test/testscale.c index 9abc0153a..b1c2ae7d7 100644 --- a/test/testscale.c +++ b/test/testscale.c @@ -112,7 +112,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testsem.c b/test/testsem.c index 8d595d394..e041b7645 100644 --- a/test/testsem.c +++ b/test/testsem.c @@ -266,7 +266,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testsensor.c b/test/testsensor.c index 0ab36b590..a5b715e66 100644 --- a/test/testsensor.c +++ b/test/testsensor.c @@ -69,7 +69,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { SDLTest_CommonDestroyState(state); diff --git a/test/testshader.c b/test/testshader.c index 6b50bca6b..9e7f812e1 100644 --- a/test/testshader.c +++ b/test/testshader.c @@ -459,7 +459,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c index 8849b8916..61cee77a5 100644 --- a/test/testspriteminimal.c +++ b/test/testspriteminimal.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) int i; /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (argc > 1) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "USAGE: %s\n", argv[0]); diff --git a/test/teststreaming.c b/test/teststreaming.c index 8669157c1..6f424bc0a 100644 --- a/test/teststreaming.c +++ b/test/teststreaming.c @@ -146,7 +146,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { SDLTest_CommonDestroyState(state); diff --git a/test/testsurround.c b/test/testsurround.c index d0aa3d0a9..23a522c65 100644 --- a/test/testsurround.c +++ b/test/testsurround.c @@ -158,7 +158,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { SDLTest_CommonQuit(state); diff --git a/test/testthread.c b/test/testthread.c index 274516e50..56473415b 100644 --- a/test/testthread.c +++ b/test/testthread.c @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testtime.c b/test/testtime.c index 3382585d3..ab2fcef9d 100644 --- a/test/testtime.c +++ b/test/testtime.c @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ if (!SDLTest_CommonDefaultArgs(state, argc, argv)) { diff --git a/test/testtimer.c b/test/testtimer.c index 6fc02423a..5714ea334 100644 --- a/test/testtimer.c +++ b/test/testtimer.c @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/testver.c b/test/testver.c index a0f0ebd3e..b417e088f 100644 --- a/test/testver.c +++ b/test/testver.c @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) { /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (argc > 1) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "USAGE: %s", argv[0]); diff --git a/test/testvulkan.c b/test/testvulkan.c index 3316c409b..7b38fb9b6 100644 --- a/test/testvulkan.c +++ b/test/testvulkan.c @@ -1088,7 +1088,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Set Vulkan parameters */ state->window_flags |= SDL_WINDOW_VULKAN; diff --git a/test/testwm.c b/test/testwm.c index 3e1a75978..776ab91cf 100644 --- a/test/testwm.c +++ b/test/testwm.c @@ -276,7 +276,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); if (!SDLTest_CommonDefaultArgs(state, argc, argv) || !SDLTest_CommonInit(state)) { SDLTest_CommonQuit(state); diff --git a/test/testyuv.c b/test/testyuv.c index 6f551a94a..981c63b4d 100644 --- a/test/testyuv.c +++ b/test/testyuv.c @@ -306,7 +306,7 @@ int main(int argc, char **argv) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Parse commandline */ for (i = 1; i < argc;) { diff --git a/test/torturethread.c b/test/torturethread.c index fd524b436..83bb76c21 100644 --- a/test/torturethread.c +++ b/test/torturethread.c @@ -89,7 +89,7 @@ int main(int argc, char *argv[]) } /* Enable standard application logging */ - SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); + SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); /* Load the SDL library */ if (SDL_Init(0) < 0) {