summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-06-20 14:22:31 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-06-20 14:22:31 +0200
commit99ea03571a835c3a56b364be4ccebcc745d09dbe (patch)
tree8a5e6cf1373b7de8228c6140685a7de18dcda86d
parenta77732c18089a12fa7c009a02cc1f1d6636a4284 (diff)
downloadlvm2-99ea03571a835c3a56b364be4ccebcc745d09dbe.tar.gz
cleanup: log: use hex numbers instead of decimal for _LOG_*
-rw-r--r--lib/log/log.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/log/log.h b/lib/log/log.h
index 15d363e68..1bc9cbed7 100644
--- a/lib/log/log.h
+++ b/lib/log/log.h
@@ -41,16 +41,16 @@
#define EUNCLASSIFIED -1 /* Generic error code */
-#define _LOG_STDERR 128 /* force things to go to stderr, even if loglevel
- would make them go to stdout */
-#define _LOG_ONCE 256 /* downgrade to NOTICE if this has been already logged */
-#define _LOG_BYPASS_REPORT 512 /* do not log through report even if report available */
-#define _LOG_DEBUG 7
-#define _LOG_INFO 6
-#define _LOG_NOTICE 5
-#define _LOG_WARN 4
-#define _LOG_ERR 3
-#define _LOG_FATAL 2
+#define _LOG_FATAL 0x0002
+#define _LOG_ERR 0x0003
+#define _LOG_WARN 0x0004
+#define _LOG_NOTICE 0x0005
+#define _LOG_INFO 0x0006
+#define _LOG_DEBUG 0x0007
+#define _LOG_STDERR 0x0080 /* force things to go to stderr, even if loglevel would make them go to stdout */
+#define _LOG_ONCE 0x0100 /* downgrade to NOTICE if this has been already logged */
+#define _LOG_BYPASS_REPORT 0x0200 /* do not log through report even if report available */
+
#define INTERNAL_ERROR "Internal error: "
/*