diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-03 15:21:41 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-03 15:21:41 +0000 |
commit | 5a91d8a58d32e5e57c12c6c7e002716d3f33c735 (patch) | |
tree | e7c9ee1b898d608f865db6dd8982c741dd6e787f /sys/kern | |
parent | df075bab477333f8d4eed2e1770bf43c2adea218 (diff) |
don't use empty format string
this is necessary to enable -Wformat or -Wno-error=format
ok deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_disk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 4b500c11165..f5eebe39c34 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.149 2013/06/11 16:42:16 deraadt Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.150 2013/07/03 15:21:40 sf Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -761,8 +761,7 @@ diskerr(struct buf *bp, char *dname, char *what, int pri, int blkdone, daddr_t sn; if (pri != LOG_PRINTF) { - static const char fmt[] = ""; - log(pri, fmt); + log(pri, "%s", ""); pr = addlog; } else pr = printf; |