diff options
author | Denis Vlasenko | 2006-09-06 18:36:50 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-06 18:36:50 +0000 |
commit | 3538b9a8822421b7c8596a33a917dcf2f99c92b7 (patch) | |
tree | 768c23fe79bb81583de7376a4d744632d888d303 /networking/udhcp/common.h | |
parent | 5d725462d44268f9a86030daaa6f6396d32f796c (diff) | |
download | busybox-3538b9a8822421b7c8596a33a917dcf2f99c92b7.zip busybox-3538b9a8822421b7c8596a33a917dcf2f99c92b7.tar.gz |
Implement optional syslog logging using ordinary
bb_xx_msg calls, and convert networking/* to it.
The rest of bbox will be converted gradually.
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r-- | networking/udhcp/common.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index eb73c21..d5291f2 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h @@ -12,26 +12,12 @@ #include "libbb_udhcp.h" - -enum syslog_levels { - LOG_EMERG = 0, - LOG_ALERT, - LOG_CRIT, - LOG_WARNING, - LOG_ERR, - LOG_INFO, - LOG_DEBUG -}; -#include <syslog.h> - long uptime(void); -#define LOG(level, str, args...) udhcp_logging(level, str, ## args) - #if ENABLE_FEATURE_UDHCP_DEBUG -# define DEBUG(level, str, args...) LOG(level, str, ## args) +# define DEBUG(str, args...) bb_info_msg(str, ## args) #else -# define DEBUG(level, str, args...) do {;} while(0) +# define DEBUG(str, args...) do {;} while(0) #endif #endif |