#include <syslog.h>
Defines | |
#define | DO_LOG(__level,...) |
Copyright (C) 2008 Nokia. All rights reserved.
#define DO_LOG | ( | __level, | |||
... | ) |
Value:
{ \ if (__level == LOG_DEBUG && !clockd_debug_mode) ; \ else { \ if (clockd_debug_mode) { \ printf(MESTR __VA_ARGS__); printf("\n"); fflush(stdout); \ } \ syslog(__level, __VA_ARGS__); \ } \ }
__level | Message level, one of the following:
| |
... | Typically printf-style formatter and parameters |
Referenced by decode_ctm(), dump_date(), handle_alarm(), handle_csd_net_time_change(), mainloop_run(), mainloop_stop(), read_conf(), save_conf(), send_time_change_indication(), server_filter(), server_init(), server_quit(), server_set_autosync(), server_set_time(), server_set_time_format(), server_set_tz(), set_time(), set_tz(), sighnd_handler(), and sighnd_terminate().