Constify the format string of logging functions
This commit is contained in:
parent
07146e3261
commit
107ec85578
|
@ -74,7 +74,7 @@ set_logdomains(char *domains)
|
|||
}
|
||||
|
||||
void
|
||||
vlogger(int severity, int domain, char *fmt, va_list args)
|
||||
vlogger(int severity, int domain, const char *fmt, va_list args)
|
||||
{
|
||||
va_list ap;
|
||||
char stamp[32];
|
||||
|
@ -121,7 +121,7 @@ vlogger(int severity, int domain, char *fmt, va_list args)
|
|||
}
|
||||
|
||||
void
|
||||
DPRINTF(int severity, int domain, char *fmt, ...)
|
||||
DPRINTF(int severity, int domain, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
|
|
@ -32,10 +32,10 @@
|
|||
|
||||
|
||||
void
|
||||
vlogger(int severity, int domain, char *fmt, va_list args);
|
||||
vlogger(int severity, int domain, const char *fmt, va_list args);
|
||||
|
||||
void
|
||||
DPRINTF(int severity, int domain, char *fmt, ...) __attribute__((format(printf, 3, 4)));
|
||||
DPRINTF(int severity, int domain, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
|
||||
|
||||
void
|
||||
logger_libevent(int severity, const char *msg);
|
||||
|
|
Loading…
Reference in New Issue