summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-10-18 10:37:03 +0000
committerderaadt <deraadt@openbsd.org>1997-10-18 10:37:03 +0000
commita61ae37bb32f92d6a6fea62c65d526a6ec668fd3 (patch)
treed5c89497c672e4e2d5487e52bb1e09ab17a55308 /sys/dev
parentdo not create spoofed partition for DOSTYP_OPENBSD (diff)
downloadwireguard-openbsd-a61ae37bb32f92d6a6fea62c65d526a6ec668fd3.tar.xz
wireguard-openbsd-a61ae37bb32f92d6a6fea62c65d526a6ec668fd3.zip
avoid "no disklabel" error messages
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/atapi/acd.c6
-rw-r--r--sys/dev/isa/fd.c8
-rw-r--r--sys/dev/isa/mcd.c4
-rw-r--r--sys/dev/isa/wd.c4
-rw-r--r--sys/dev/ramdisk.c4
-rw-r--r--sys/dev/vnd.c4
6 files changed, 16 insertions, 14 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c
index 1006396b834..3243989750b 100644
--- a/sys/dev/atapi/acd.c
+++ b/sys/dev/atapi/acd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acd.c,v 1.28 1997/09/11 11:20:45 deraadt Exp $ */
+/* $OpenBSD: acd.c,v 1.29 1997/10/18 10:37:06 deraadt Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
@@ -1083,8 +1083,8 @@ acdgetdisklabel(acd)
errstring = readdisklabel(MAKECDDEV(0, acd->sc_dev.dv_unit,
RAW_PART), acdstrategy, lp, acd->sc_dk.dk_cpulabel);
#endif
- if (errstring)
- printf("%s: %s\n", acd->sc_dev.dv_xname, errstring);
+ /*if (errstring)
+ printf("%s: %s\n", acd->sc_dev.dv_xname, errstring);*/
}
done:
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;
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index 259e0ba9e91..4387d246872 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcd.c,v 1.21 1997/09/29 12:01:27 mickey Exp $ */
+/* $OpenBSD: mcd.c,v 1.22 1997/10/18 10:37:12 deraadt Exp $ */
/* $NetBSD: mcd.c,v 1.49 1996/05/12 23:53:11 mycroft Exp $ */
/*
@@ -722,7 +722,7 @@ mcdgetdisklabel(dev, sc)
errstring = readdisklabel(MCDLABELDEV(dev), mcdstrategy, lp,
sc->sc_dk.dk_cpulabel);
if (errstring) {
- printf("%s: %s\n", sc->sc_dev.dv_xname, errstring);
+ /*printf("%s: %s\n", sc->sc_dev.dv_xname, errstring);*/
return;
}
}
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c
index d79a46e3259..b4251a2d757 100644
--- a/sys/dev/isa/wd.c
+++ b/sys/dev/isa/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.29 1997/09/13 14:18:44 niklas Exp $ */
+/* $OpenBSD: wd.c,v 1.30 1997/10/18 10:37:14 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -567,7 +567,7 @@ wdgetdisklabel(dev, wd)
wd->sc_dk.dk_cpulabel);
}
if (errstring) {
- printf("%s: %s\n", wd->sc_dev.dv_xname, errstring);
+ */printf("%s: %s\n", wd->sc_dev.dv_xname, errstring);*/
return;
}
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 9ed1110f412..be0809ee45a 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ramdisk.c,v 1.6 1997/02/06 04:30:35 rahnds Exp $ */
+/* $OpenBSD: ramdisk.c,v 1.7 1997/10/18 10:37:03 deraadt Exp $ */
/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/*
@@ -523,7 +523,7 @@ rdgetdisklabel(dev, sc)
*/
errstring = readdisklabel(RDLABELDEV(dev), rdstrategy, &lp, &clp);
if (errstring) {
- printf("%s: %s\n", sc->sc_dev.dv_xname, errstring);
+ /*printf("%s: %s\n", sc->sc_dev.dv_xname, errstring);*/
return NULL;
}
return &lp;
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 63acb349858..13fc74bac7e 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.18 1997/10/06 20:19:40 deraadt Exp $ */
+/* $OpenBSD: vnd.c,v 1.19 1997/10/18 10:37:04 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -296,7 +296,7 @@ vndgetdisklabel(dev, sc)
errstring = readdisklabel(VNDLABELDEV(dev), vndstrategy, lp,
sc->sc_dk.dk_cpulabel);
if (errstring) {
- printf("%s: %s\n", sc->sc_dev.dv_xname, errstring);
+ /*printf("%s: %s\n", sc->sc_dev.dv_xname, errstring);*/
return;
}
}