summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-19 00:14:51 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-19 00:14:51 +0200
commit9b2cc549afd629a227a94aca35c4026c4eefdd2f (patch)
treea26ef553ae4e461646fbb77e1291a287504b1b11
parent1bf627bb338ffe61e01bf7d6eeda4a6e18ccbeca (diff)
move log levels to netifd.h
-rw-r--r--main.c8
-rw-r--r--netifd.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/main.c b/main.c
index 256a022..eeefd52 100644
--- 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
-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,
diff --git a/netifd.h b/netifd.h
index 8330aff..2167d6f 100644
--- a/netifd.h
+++ b/netifd.h
@@ -28,6 +28,14 @@ extern char *hotplug_cmd_path;
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,