mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	hints: Remove SDL_HINT_DEBUG_LOGGING.
This now just needs generic debug-level logging enabled, for example: ```bash SDL_LOGGING=debug ./test/testsprite ``` Fixes #13425.
This commit is contained in:
		| @@ -4531,31 +4531,6 @@ extern "C" { | |||||||
|  */ |  */ | ||||||
| #define SDL_HINT_PEN_TOUCH_EVENTS "SDL_PEN_TOUCH_EVENTS" | #define SDL_HINT_PEN_TOUCH_EVENTS "SDL_PEN_TOUCH_EVENTS" | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * A variable controlling whether SDL logs some debug information. |  | ||||||
|  * |  | ||||||
|  * The variable can be set to the following values: |  | ||||||
|  * |  | ||||||
|  * - "0": SDL debug information will not be logged. (default) |  | ||||||
|  * - "1": SDL debug information will be logged. |  | ||||||
|  * |  | ||||||
|  * This is generally meant to be used as an environment variable to let |  | ||||||
|  * end-users report what subsystems were chosen on their system, perhaps what |  | ||||||
|  * sort of hardware they are running on, etc, to aid in debugging. Logged |  | ||||||
|  * information is sent through SDL_Log(), which means by default they appear |  | ||||||
|  * on stdout on most platforms, or maybe OutputDebugString() on Windows, and |  | ||||||
|  * can be funneled by the app with SDL_SetLogOutputFunction(), etc. |  | ||||||
|  * |  | ||||||
|  * The specific output might change between SDL versions; more information |  | ||||||
|  * might be deemed useful in the future. |  | ||||||
|  * |  | ||||||
|  * This hint can be set anytime, but the specific logs are generated during |  | ||||||
|  * subsystem init. |  | ||||||
|  * |  | ||||||
|  * \since This hint is available since SDL 3.4.0. |  | ||||||
|  */ |  | ||||||
| #define SDL_HINT_DEBUG_LOGGING "SDL_DEBUG_LOGGING" |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * An enumeration of hint priorities. |  * An enumeration of hint priorities. | ||||||
|  * |  * | ||||||
|   | |||||||
| @@ -575,12 +575,9 @@ char *SDL_CreateDeviceName(Uint16 vendor, Uint16 product, const char *vendor_nam | |||||||
|     return name; |     return name; | ||||||
| } | } | ||||||
|  |  | ||||||
| #define SDL_DEBUG_LOG_INTRO "SDL_DEBUG: " |  | ||||||
|  |  | ||||||
| void SDL_DebugLogBackend(const char *subsystem, const char *backend) | void SDL_DebugLogBackend(const char *subsystem, const char *backend) | ||||||
| { | { | ||||||
|     if (SDL_GetHintBoolean(SDL_HINT_DEBUG_LOGGING, false)) { |     SDL_LogDebug(SDL_LOG_CATEGORY_SYSTEM, "SDL chose %s backend '%s'", subsystem, backend); | ||||||
|         SDL_Log(SDL_DEBUG_LOG_INTRO "chose %s backend '%s'", subsystem, backend); |  | ||||||
|     } |  | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ryan C. Gordon
					Ryan C. Gordon