move log levels to netifd.h
authorFelix Fietkau <nbd@openwrt.org>
Tue, 18 Oct 2011 22:14:51 +0000 (00:14 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 18 Oct 2011 22:14:51 +0000 (00:14 +0200)
main.c
netifd.h

diff --git a/main.c b/main.c
index 256a022..eeefd52 100644 (file)
--- a/main.c
+++ b/main.c
@@ -23,14 +23,6 @@ static struct list_head fds = LIST_HEAD_INIT(fds);
 
 #define DEFAULT_LOG_LEVEL L_NOTICE
 
 
 #define DEFAULT_LOG_LEVEL L_NOTICE
 
-enum {
-       L_CRIT,
-       L_WARNING,
-       L_NOTICE,
-       L_INFO,
-       L_DEBUG
-};
-
 static int log_level = DEFAULT_LOG_LEVEL;
 static const int log_class[] = {
        [L_CRIT] = LOG_CRIT,
 static int log_level = DEFAULT_LOG_LEVEL;
 static const int log_class[] = {
        [L_CRIT] = LOG_CRIT,
index 8330aff..2167d6f 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -28,6 +28,14 @@ extern char *hotplug_cmd_path;
 extern unsigned int debug_mask;
 
 enum {
 extern unsigned int debug_mask;
 
 enum {
+       L_CRIT,
+       L_WARNING,
+       L_NOTICE,
+       L_INFO,
+       L_DEBUG
+};
+
+enum {
        DEBUG_SYSTEM    = 0,
        DEBUG_DEVICE    = 1,
        DEBUG_INTERFACE = 2,
        DEBUG_SYSTEM    = 0,
        DEBUG_DEVICE    = 1,
        DEBUG_INTERFACE = 2,