From 63643c4b41aac9c0bb06a32657cdb4d33e2c19a4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 19 Feb 2009 18:52:28 +0100 Subject: [PATCH] Logging: The list of level names is consistent again. I have moved the list to . It is needed only rarely, but at this place we hopefully won't miss again it when changing the levels. --- ucw/lib.h | 3 +++ ucw/log.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ucw/lib.h b/ucw/lib.h index b15b6d0c..0190c5a3 100644 --- a/ucw/lib.h +++ b/ucw/lib.h @@ -105,6 +105,9 @@ enum log_levels { /** The available log levels to pass to msg() and friends. * #define LOG_LEVEL_NAMES P(DEBUG) P(INFO) P(WARN) P(ERROR) P(INFO_R) P(WARN_R) P(ERROR_R) P(FATAL) +// Return the letter associated with a given severity level +#define LS_LEVEL_LETTER(level) ("DIWEiwe!###"[( level )]) + #define L_SIGHANDLER 0x80000000 /** Avoid operations that are unsafe in signal handlers **/ #define L_LOGGER_ERR 0x40000000 /** Used internally to avoid infinite reporting of logging errors **/ diff --git a/ucw/log.h b/ucw/log.h index 0e4ea30d..3c7264a6 100644 --- a/ucw/log.h +++ b/ucw/log.h @@ -67,9 +67,6 @@ enum ls_flag { LSFLAG_ERR_REPORTED = 2, // A logging error has been already reported on this stream }; -// Return the letter associated with a given severity level -#define LS_LEVEL_LETTER(level) ("DIiWwEe!###"[( level )]) - /*** * === Message flags * -- 2.39.2