diff options
author | trasz <trasz@FreeBSD.org> | 2014-03-25 12:31:08 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-03-25 12:31:08 +0000 |
commit | 9a3c8da93d95fd7a586e236d784e7caaf5949583 (patch) | |
tree | cc7aba519a1cedd7932f6da1a0b289d0c5d866ce /usr.sbin/ctld | |
parent | 018e61bbe41ed03d2b3e99ad59a942463e257a32 (diff) | |
download | FreeBSD-src-9a3c8da93d95fd7a586e236d784e7caaf5949583.zip FreeBSD-src-9a3c8da93d95fd7a586e236d784e7caaf5949583.tar.gz |
MFC r261751:
The log_whatever() routines don't accept NULL for format strings,
so mark them as __printflike instead of__printf0like.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld')
-rw-r--r-- | usr.sbin/ctld/ctld.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h index ae11922..ce161b6 100644 --- a/usr.sbin/ctld/ctld.h +++ b/usr.sbin/ctld/ctld.h @@ -295,12 +295,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); |