The log_whatever() routines don't accept NULL for format strings,
so mark them as __printflike instead of__printf0like. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a19eebb1b7
commit
1885dba7b1
@ -263,12 +263,12 @@ void log_init(int level);
|
||||
void log_set_peer_name(const char *name);
|
||||
void log_set_peer_addr(const char *addr);
|
||||
void log_err(int, const char *, ...)
|
||||
__dead2 __printf0like(2, 3);
|
||||
__dead2 __printflike(2, 3);
|
||||
void log_errx(int, const char *, ...)
|
||||
__dead2 __printf0like(2, 3);
|
||||
void log_warn(const char *, ...) __printf0like(1, 2);
|
||||
__dead2 __printflike(2, 3);
|
||||
void log_warn(const char *, ...) __printflike(1, 2);
|
||||
void log_warnx(const char *, ...) __printflike(1, 2);
|
||||
void log_debugx(const char *, ...) __printf0like(1, 2);
|
||||
void log_debugx(const char *, ...) __printflike(1, 2);
|
||||
|
||||
char *checked_strdup(const char *);
|
||||
bool valid_iscsi_name(const char *name);
|
||||
|
Loading…
Reference in New Issue
Block a user