(!1680) os: log: drop unnecessary ifdef's

The #ifdef's for log prefix defines aren't needed, so drop them.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-09 16:37:06 +02:00
parent ac503cca59
commit 54632e9049

View File

@ -108,12 +108,8 @@ OR PERFORMANCE OF THIS SOFTWARE.
void (*OsVendorVErrorFProc) (const char *, va_list args) = NULL; void (*OsVendorVErrorFProc) (const char *, va_list args) = NULL;
/* Default logging parameters. */ /* Default logging parameters. */
#ifndef DEFAULT_LOG_VERBOSITY
#define DEFAULT_LOG_VERBOSITY 0 #define DEFAULT_LOG_VERBOSITY 0
#endif
#ifndef DEFAULT_LOG_FILE_VERBOSITY
#define DEFAULT_LOG_FILE_VERBOSITY 3 #define DEFAULT_LOG_FILE_VERBOSITY 3
#endif
static int logFileFd = -1; static int logFileFd = -1;
static Bool logSync = FALSE; static Bool logSync = FALSE;
@ -134,42 +130,18 @@ asm(".desc ___crashreporter_info__, 0x10");
#endif #endif
/* Prefix strings for log messages. */ /* Prefix strings for log messages. */
#ifndef X_UNKNOWN_STRING
#define X_UNKNOWN_STRING "(\?\?)" #define X_UNKNOWN_STRING "(\?\?)"
#endif
#ifndef X_PROBE_STRING
#define X_PROBE_STRING "(--)" #define X_PROBE_STRING "(--)"
#endif
#ifndef X_CONFIG_STRING
#define X_CONFIG_STRING "(**)" #define X_CONFIG_STRING "(**)"
#endif
#ifndef X_DEFAULT_STRING
#define X_DEFAULT_STRING "(==)" #define X_DEFAULT_STRING "(==)"
#endif
#ifndef X_CMDLINE_STRING
#define X_CMDLINE_STRING "(++)" #define X_CMDLINE_STRING "(++)"
#endif
#ifndef X_NOTICE_STRING
#define X_NOTICE_STRING "(!!)" #define X_NOTICE_STRING "(!!)"
#endif
#ifndef X_ERROR_STRING
#define X_ERROR_STRING "(EE)" #define X_ERROR_STRING "(EE)"
#endif
#ifndef X_WARNING_STRING
#define X_WARNING_STRING "(WW)" #define X_WARNING_STRING "(WW)"
#endif
#ifndef X_INFO_STRING
#define X_INFO_STRING "(II)" #define X_INFO_STRING "(II)"
#endif
#ifndef X_NOT_IMPLEMENTED_STRING
#define X_NOT_IMPLEMENTED_STRING "(NI)" #define X_NOT_IMPLEMENTED_STRING "(NI)"
#endif
#ifndef X_DEBUG_STRING
#define X_DEBUG_STRING "(DB)" #define X_DEBUG_STRING "(DB)"
#endif
#ifndef X_NONE_STRING
#define X_NONE_STRING "" #define X_NONE_STRING ""
#endif
static size_t static size_t
strlen_sigsafe(const char *s) strlen_sigsafe(const char *s)