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
57cf56ce65
commit
3fa953a071
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261715
@ -106,12 +106,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 timed_out(void);
|
||||
|
Loading…
Reference in New Issue
Block a user