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/mscp/mscp_disk.c | |
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/mscp/mscp_disk.c')
-rw-r--r-- | sys/arch/vax/mscp/mscp_disk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/vax/mscp/mscp_disk.c b/sys/arch/vax/mscp/mscp_disk.c index 01e2baf26aa..1a3690bd8e4 100644 --- a/sys/arch/vax/mscp/mscp_disk.c +++ b/sys/arch/vax/mscp/mscp_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mscp_disk.c,v 1.17 2006/07/12 19:56:18 thib Exp $ */ +/* $OpenBSD: mscp_disk.c,v 1.18 2007/02/15 00:53:26 krw Exp $ */ /* $NetBSD: mscp_disk.c,v 1.30 2001/11/13 07:38:28 lukem Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -163,9 +163,9 @@ ra_putonline(ra) ra->ra_state = DK_RDLABEL; printf("%s", ra->ra_dev.dv_xname); if ((msg = readdisklabel(MAKEDISKDEV(RAMAJOR, ra->ra_dev.dv_unit, - RAW_PART), rastrategy, dl, NULL, 0)) != NULL) - printf(": %s", msg); - else { + RAW_PART), rastrategy, dl, NULL, 0)) != NULL) { + /*printf(": %s", msg);*/ + } else { ra->ra_havelabel = 1; ra->ra_state = DK_OPEN; } |