diff options
author | 2013-11-18 17:45:01 +0000 | |
---|---|---|
committer | 2013-11-18 17:45:01 +0000 | |
commit | d1c791f09f74d02d2b0ac767de140d366a993d11 (patch) | |
tree | 0376c18d56a99e66069d56d55eca97948c9ddf26 /sys/kern/subr_disk.c | |
parent | Factor out of {split,pci}_status_strings[] the printf formattings bits, (diff) | |
download | wireguard-openbsd-d1c791f09f74d02d2b0ac767de140d366a993d11.tar.xz wireguard-openbsd-d1c791f09f74d02d2b0ac767de140d366a993d11.zip |
panic expects a format string
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 88940ea98db..57a4027e57c 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.157 2013/11/01 17:36:19 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.158 2013/11/18 17:45:01 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -1057,7 +1057,7 @@ dk_mountroot(void) error = disk_readlabel(&dl, rootdev, errbuf, sizeof(errbuf)); if (error) - panic(error); + panic("%s", error); if (DL_GETPSIZE(&dl.d_partitions[part]) == 0) panic("root filesystem has size 0"); |