diff options
author | Craig Small <csmall@enc.com.au> | 2001-11-27 04:11:49 +0000 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2001-11-27 04:11:49 +0000 |
commit | 886a37dd2309e60f85360ddec562417bbe741730 (patch) | |
tree | cb7b31a82181947f8f042670392b652120b6fb6e /ax25ipd/ax25ipd.h | |
parent | 6364520eb4c795e85f7893ba02de860d132c1d2c (diff) |
merged my changes with terry indent, daemon can now optionally not fork
Diffstat (limited to 'ax25ipd/ax25ipd.h')
-rw-r--r-- | ax25ipd/ax25ipd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h index 76a25b6..de845b8 100644 --- a/ax25ipd/ax25ipd.h +++ b/ax25ipd/ax25ipd.h @@ -109,10 +109,10 @@ struct { #define MAX_FRAME 2048 -#define LOGL1 if(loglevel>0)(void)printf -#define LOGL2 if(loglevel>1)(void)printf -#define LOGL3 if(loglevel>2)(void)printf -#define LOGL4 if(loglevel>3)(void)printf +#define LOGL1(arg...) if(loglevel>0)syslog(LOG_DAEMON | LOG_WARNING, ##arg) +#define LOGL2(arg...) if(loglevel>1)syslog(LOG_DAEMON | LOG_WARNING, ##arg) +#define LOGL3(arg...) if(loglevel>2)syslog(LOG_DAEMON | LOG_WARNING, ##arg) +#define LOGL4(arg...) if(loglevel>3)(void)syslog(LOG_DAEMON | LOG_DEBUG, ##arg) #define AXRT_BCAST 1 #define AXRT_DEFAULT 2 |