aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r--networking/udhcp/common.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index eb73c2162..d5291f2f3 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -12,26 +12,12 @@
12 12
13#include "libbb_udhcp.h" 13#include "libbb_udhcp.h"
14 14
15
16enum syslog_levels {
17 LOG_EMERG = 0,
18 LOG_ALERT,
19 LOG_CRIT,
20 LOG_WARNING,
21 LOG_ERR,
22 LOG_INFO,
23 LOG_DEBUG
24};
25#include <syslog.h>
26
27long uptime(void); 15long uptime(void);
28 16
29#define LOG(level, str, args...) udhcp_logging(level, str, ## args)
30
31#if ENABLE_FEATURE_UDHCP_DEBUG 17#if ENABLE_FEATURE_UDHCP_DEBUG
32# define DEBUG(level, str, args...) LOG(level, str, ## args) 18# define DEBUG(str, args...) bb_info_msg(str, ## args)
33#else 19#else
34# define DEBUG(level, str, args...) do {;} while(0) 20# define DEBUG(str, args...) do {;} while(0)
35#endif 21#endif
36 22
37#endif 23#endif