Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata Start new line before issuing IDENTIFY command s...
details: https://anonhg.NetBSD.org/src/rev/89605015954b
branches: trunk
changeset: 761876:89605015954b
user: enami <enami%NetBSD.org@localhost>
date: Thu Feb 10 05:07:46 2011 +0000
description:
Start new line before issuing IDENTIFY command since messages from
other driver may interfere during waiting for command completion.
diffstat:
sys/dev/ata/wd.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 70f441b4b7f8 -r 89605015954b sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Thu Feb 10 03:30:29 2011 +0000
+++ b/sys/dev/ata/wd.c Thu Feb 10 05:07:46 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.385 2010/11/05 15:49:37 dyoung Exp $ */
+/* $NetBSD: wd.c,v 1.386 2011/02/10 05:07:46 enami Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.385 2010/11/05 15:49:37 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.386 2011/02/10 05:07:46 enami Exp $");
#include "opt_ata.h"
@@ -281,10 +281,11 @@
wd->drvp->drv_softc = wd->sc_dev;
aprint_naive("\n");
+ aprint_normal("\n");
/* read our drive info */
if (wd_get_params(wd, AT_WAIT, &wd->sc_params) != 0) {
- aprint_error("\n%s: IDENTIFY failed\n", device_xname(self));
+ aprint_error_dev(self, "IDENTIFY failed\n");
return;
}
@@ -304,7 +305,7 @@
}
*q++ = '\0';
- aprint_normal(": <%s>\n", tbuf);
+ aprint_normal_dev(self, "<%s>\n", tbuf);
wdq = wd_lookup_quirks(tbuf);
if (wdq != NULL)
Home |
Main Index |
Thread Index |
Old Index