projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bf627b
)
move log levels to netifd.h
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 18 Oct 2011 22:14:51 +0000
(
00:14
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 18 Oct 2011 22:14:51 +0000
(
00:14
+0200)
main.c
patch
|
blob
|
history
netifd.h
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 256a0223ee88b50cac6440665f1552219e281a42..eeefd52e5ccac02bb6b1439807e64d21c3951e22 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
-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 8330aff47eb1044b1f0541164f98b6817479bf0b..2167d6f91c556d0c56aa1c3169dafe82944c1d7c 100644
(file)
--- 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,