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/vax/mba/hp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/vax/mba') 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); /* -- cgit v1.2.3