From 5a91d8a58d32e5e57c12c6c7e002716d3f33c735 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Wed, 3 Jul 2013 15:21:41 +0000 Subject: don't use empty format string this is necessary to enable -Wformat or -Wno-error=format ok deraadt@ --- sys/kern/subr_disk.c | 5 ++--- 1 file 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; -- cgit v1.2.3