mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-16 00:28:10 +02:00
Better format for printf format attributes.
This commit is contained in:
6
log.c
6
log.c
@ -80,7 +80,7 @@ log_vwrite(const char *msg, va_list ap)
|
||||
}
|
||||
|
||||
/* Log a debug message. */
|
||||
void printflike1
|
||||
void
|
||||
log_debug(const char *msg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
@ -91,7 +91,7 @@ log_debug(const char *msg, ...)
|
||||
}
|
||||
|
||||
/* Log a critical error with error string and die. */
|
||||
__dead void printflike1
|
||||
__dead void
|
||||
log_fatal(const char *msg, ...)
|
||||
{
|
||||
char *fmt;
|
||||
@ -105,7 +105,7 @@ log_fatal(const char *msg, ...)
|
||||
}
|
||||
|
||||
/* Log a critical error and die. */
|
||||
__dead void printflike1
|
||||
__dead void
|
||||
log_fatalx(const char *msg, ...)
|
||||
{
|
||||
char *fmt;
|
||||
|
Reference in New Issue
Block a user