mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:15:07 -05:00
logging: don't save debugging arguments when debug is disabled
Don't save the facility number, line number, function name and filename in the compiled binary unless the debugging support is enabled.
This commit is contained in:
9
client.c
9
client.c
@@ -76,9 +76,12 @@ static int no_dns = 0;
|
||||
|
||||
int log_debug_enabled = 0;
|
||||
|
||||
void LOG_Message(LOG_Severity severity, LOG_Facility facility,
|
||||
int line_number, const char *filename,
|
||||
const char *function_name, const char *format, ...)
|
||||
void LOG_Message(LOG_Severity severity,
|
||||
#if DEBUG > 0
|
||||
LOG_Facility facility, int line_number,
|
||||
const char *filename, const char *function_name,
|
||||
#endif
|
||||
const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user