From 95282b6858723d99be5ee46ba619aaaaf5c3aadd Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 15 Feb 2007 00:53:27 +0000 Subject: Don't print the error strings returned by readdisklabel(). If you need the debug info uncomment the printf's you need. Crude but effective way to suppress 'no disklabel' errors that pop up at the most innconvenient times to frighten users. More elegant method, DPRINTF-like constructs or something, later. "Yay!" marco@ ok deraadt@ --- sys/arch/sparc64/dev/fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c index 2aaa9286441..2d722fbe8c8 100644 --- a/sys/arch/sparc64/dev/fd.c +++ b/sys/arch/sparc64/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.8 2006/11/29 12:24:17 miod Exp $ */ +/* $OpenBSD: fd.c,v 1.9 2007/02/15 00:53:26 krw Exp $ */ /* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */ /*- @@ -2035,7 +2035,7 @@ fdgetdisklabel(dev) */ errstring = readdisklabel(dev, fdstrategy, lp, clp, 0); if (errstring) { - printf("%s: %s\n", fd->sc_dv.dv_xname, errstring); + /*printf("%s: %s\n", fd->sc_dv.dv_xname, errstring);*/ } } -- cgit v1.2.3