Fix second "no drives attached" message (as seen on sun4c) so as not to

include the device name, since this message is printed on the same line
as the attach message anyway.
This commit is contained in:
bjh21 2005-11-01 21:00:56 +00:00
parent b1134bf887
commit 58654bce56
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.118 2005/10/15 17:29:11 yamt Exp $ */
/* $NetBSD: fd.c,v 1.119 2005/11/01 21:00:56 bjh21 Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -108,7 +108,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.118 2005/10/15 17:29:11 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.119 2005/11/01 21:00:56 bjh21 Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -655,7 +655,7 @@ fdcattach(fdc, pri)
*/
fdc->sc_cfg = CFG_EIS|/*CFG_EFIFO|*/CFG_POLL|(8 & CFG_THRHLD_MASK);
if (fdconf(fdc) != 0) {
printf("%s: no drives attached\n", fdc->sc_dev.dv_xname);
printf(": no drives attached\n");
return (-1);
}