diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/router/busybox/networking/udhcp/debug.h | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/router/busybox/networking/udhcp/debug.h')
-rw-r--r-- | release/src/router/busybox/networking/udhcp/debug.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/release/src/router/busybox/networking/udhcp/debug.h b/release/src/router/busybox/networking/udhcp/debug.h deleted file mode 100644 index a1e19741..00000000 --- a/release/src/router/busybox/networking/udhcp/debug.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef _DEBUG_H -#define _DEBUG_H - -#include "libbb_udhcp.h" - -#include <stdio.h> -#ifdef SYSLOG -#include <syslog.h> -#endif - - -#ifdef SYSLOG -# define LOG(level, str, args...) do { printf(str, ## args); \ - printf("\n"); \ - syslog(level, str, ## args); } while(0) -# define OPEN_LOG(name) openlog(name, 0, 0) -#define CLOSE_LOG() closelog() -#else -# define LOG_EMERG "EMERGENCY!" -# define LOG_ALERT "ALERT!" -# define LOG_CRIT "critical!" -# define LOG_WARNING "warning" -# define LOG_ERR "error" -# define LOG_INFO "info" -# define LOG_DEBUG "debug" -# define LOG(level, str, args...) do { printf("%s, ", level); \ - printf(str, ## args); \ - printf("\n"); } while(0) -# define OPEN_LOG(name) do {;} while(0) -#define CLOSE_LOG() do {;} while(0) -#endif - -#ifdef DEBUG -# undef DEBUG -# define DEBUG(level, str, args...) LOG(level, str, ## args) -# define DEBUGGING -#else -# define DEBUG(level, str, args...) do {;} while(0) -#endif - -#endif |