diff options
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 |