summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-02 12:46:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-02 12:46:34 +0000
commita4de34ac39045aae8ad15027d42bf5c4162979c4 (patch)
treeb1398a6d863a727c3803d0e34ecc9f5cebc1aff0 /sys
parent400af2623b8d169bf3068ecca7fdc46b1d1e429a (diff)
truncated format strings; found by Parfait and gcc
ok maja oga guenther
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_userconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c
index b60aa9af7c8..9fa779800c4 100644
--- a/sys/kern/subr_userconf.c
+++ b/sys/kern/subr_userconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_userconf.c,v 1.35 2008/03/24 21:35:03 maja Exp $ */
+/* $OpenBSD: subr_userconf.c,v 1.36 2009/06/02 12:46:33 deraadt Exp $ */
/*
* Copyright (c) 1996-2001 Mats O Jansson <moj@stacken.kth.se>
@@ -601,7 +601,7 @@ userconf_disable(int devno)
if (devno > userconf_totdev &&
devno <= userconf_totdev+pdevnames_size) {
- printf("%3d %", devno, pdevnames[devno-userconf_totdev-1]);
+ printf("%3d %s", devno, pdevnames[devno-userconf_totdev-1]);
if (pdevinit[devno-userconf_totdev-1].pdev_count < 1) {
printf(" already ");
} else {
@@ -661,7 +661,7 @@ userconf_enable(int devno)
if (devno > userconf_totdev &&
devno <= userconf_totdev+pdevnames_size) {
- printf("%3d %", devno, pdevnames[devno-userconf_totdev-1]);
+ printf("%3d %s", devno, pdevnames[devno-userconf_totdev-1]);
if (pdevinit[devno-userconf_totdev-1].pdev_count > 0) {
printf(" already");
} else {