Better format for printf format attributes.

This commit is contained in:
nicm
2014-10-20 23:57:13 +00:00
parent 4c42381410
commit 0a1a88d63c
8 changed files with 44 additions and 48 deletions

6
log.c
View File

@ -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;