[3/9] log: Move default log-level to criu-log.h

Submitted by Pavel Emelianov on Oct. 21, 2016, 12:50 p.m.

Details

Message ID 580A0F0B.7070203@virtuozzo.com
State Superseded
Series "headers: Sanitize headers"
Headers show

Commit Message

Pavel Emelianov Oct. 21, 2016, 12:50 p.m.
Closer to the log-levels themselves.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/include/criu-log.h | 2 ++
 criu/include/log.h      | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/include/criu-log.h b/criu/include/criu-log.h
index fd5d634..3f16d01 100644
--- a/criu/include/criu-log.h
+++ b/criu/include/criu-log.h
@@ -34,6 +34,8 @@ 
 #define LOG_INFO	(3) /* Informative, everything is fine */
 #define LOG_DEBUG	(4) /* Debug only */
 
+#define DEFAULT_LOGLEVEL	LOG_WARN
+
 extern void print_on_level(unsigned int loglevel, const char *format, ...)
 	__attribute__ ((__format__ (__printf__, 2, 3)));
 
diff --git a/criu/include/log.h b/criu/include/log.h
index 7a5b198..c93b8e7 100644
--- a/criu/include/log.h
+++ b/criu/include/log.h
@@ -26,8 +26,6 @@  extern void simple_sprintf(char output[LOG_SIMPLE_CHUNK], const char *format, ..
 
 extern int write_pidfile(int pid);
 
-#define DEFAULT_LOGLEVEL	LOG_WARN
-
 #define DEFAULT_LOG_FILENAME "criu.log"
 
 static inline int pr_quelled(unsigned int loglevel)