From 9b2cc549afd629a227a94aca35c4026c4eefdd2f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 19 Oct 2011 00:14:51 +0200 Subject: move log levels to netifd.h --- main.c | 8 -------- netifd.h | 8 ++++++++ 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 @@ -27,6 +27,14 @@ extern const char *resolv_conf; 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, -- cgit v1.2.3