Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic print the name of the driver that found the ghost



details:   https://anonhg.NetBSD.org/src/rev/e4c8abd231b3
branches:  trunk
changeset: 552153:e4c8abd231b3
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 20 07:07:39 2003 +0000

description:
print the name of the driver that found the ghost

diffstat:

 sys/dev/ic/wdc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 3f169cb87954 -r e4c8abd231b3 sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Sat Sep 20 06:22:31 2003 +0000
+++ b/sys/dev/ic/wdc.c  Sat Sep 20 07:07:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.126 2003/09/20 02:19:36 enami Exp $ */
+/*     $NetBSD: wdc.c,v 1.127 2003/09/20 07:07:39 christos Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.126 2003/09/20 02:19:36 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.127 2003/09/20 07:07:39 christos Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -297,7 +297,8 @@
                        bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, wd_sdh,
                            WDSD_IBM | 0x10);
                        if (bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, wd_sector) == 0x02) {
-                               printf("ghost detected\n");
+                               printf("%s: ghost detected\n",
+                                   chp->wdc->sc_dev.dv_xname);
                                ret_value = 0x01;
                        }
                }



Home | Main Index | Thread Index | Old Index