diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-02-15 00:53:27 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-02-15 00:53:27 +0000 |
commit | 95282b6858723d99be5ee46ba619aaaaf5c3aadd (patch) | |
tree | 1f216ad3bfeb5ecbce45f9779c3d3c4fc87ba8e1 /sys/arch/vax/mba | |
parent | 36dca6184bb3cf55c9ec2fa4270d3a9f57bc7ecc (diff) |
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@
Diffstat (limited to 'sys/arch/vax/mba')
-rw-r--r-- | sys/arch/vax/mba/hp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/vax/mba/hp.c b/sys/arch/vax/mba/hp.c index e0f8a55521d..21e603384d6 100644 --- a/sys/arch/vax/mba/hp.c +++ b/sys/arch/vax/mba/hp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hp.c,v 1.15 2004/02/15 02:45:46 tedu Exp $ */ +/* $OpenBSD: hp.c,v 1.16 2007/02/15 00:53:26 krw Exp $ */ /* $NetBSD: hp.c,v 1.22 2000/02/12 16:09:33 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -163,8 +163,9 @@ hpattach(parent, self, aux) * Read in label. */ if ((msg = readdisklabel(makedev(0, self->dv_unit * 8), hpstrategy, - dl, NULL)) != NULL) - printf(": %s", msg); + dl, NULL)) != NULL) { + /*printf(": %s", msg);*/ + } printf(": %.*s, size = %d sectors\n", (int)sizeof(dl->d_typename), dl->d_typename, dl->d_secperunit); /* |