#undef err
#define err(format, arg...) \
do { \
- log_message(LOG_ERR ,"%s: " format ,__FUNCTION__ ,## arg); \
+ log_message(LOG_ERR ,"%s: " format ,__FUNCTION__ ,## arg); \
} while (0)
#undef info
#define info(format, arg...) \
do { \
- log_message(LOG_INFO ,"%s: " format ,__FUNCTION__ ,## arg); \
+ log_message(LOG_INFO ,"%s: " format ,__FUNCTION__ ,## arg); \
} while (0)
#ifdef DEBUG
#undef logging_init
static inline void logging_init(const char *program_name)
{
- openlog(program_name, LOG_PID, LOG_DAEMON);
+ openlog(program_name, LOG_PID | LOG_CONS, LOG_DAEMON);
}
#undef logging_close