From ffa2ea42b8b116d148c113bea0d2458accd19a2a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 18 Oct 1997 10:37:20 +0000 Subject: avoid "no disklabel" error messages --- sys/dev/isa/fd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/isa/fd.c') diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index adff6a5703d..492011434d1 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.34 1997/04/07 22:48:08 rees Exp $ */ +/* $OpenBSD: fd.c,v 1.35 1997/10/18 10:37:09 deraadt Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -993,8 +993,10 @@ fdioctl(dev, cmd, addr, flag, p) lp->d_checksum = dkcksum(lp); errstring = readdisklabel(dev, fdstrategy, lp, &cdl); - if (errstring) - printf("%s: %s\n", fd->sc_dev.dv_xname, errstring); + if (errstring) { + /*printf("%s: %s\n", fd->sc_dev.dv_xname, errstring); */ + return 0; + } *(struct disklabel *)addr = *lp; return 0; -- cgit v1.2.3