Module Name:    src
Committed By:   jakllsch
Date:           Tue Jan 10 01:43:05 UTC 2012

Modified Files:
        src/sys/dev/ic: ahcisata_core.c

Log Message:
When a port reset fails, it is important to know which port.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/ic/ahcisata_core.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/ahcisata_core.c
diff -u src/sys/dev/ic/ahcisata_core.c:1.32 src/sys/dev/ic/ahcisata_core.c:1.33
--- src/sys/dev/ic/ahcisata_core.c:1.32	Sat Aug 20 16:03:48 2011
+++ src/sys/dev/ic/ahcisata_core.c	Tue Jan 10 01:43:05 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ahcisata_core.c,v 1.32 2011/08/20 16:03:48 jakllsch Exp $	*/
+/*	$NetBSD: ahcisata_core.c,v 1.33 2012/01/10 01:43:05 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.32 2011/08/20 16:03:48 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.33 2012/01/10 01:43:05 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -579,7 +579,7 @@ ahci_reset_channel(struct ata_channel *c
 	ahci_channel_stop(sc, chp, flags);
 	if (sata_reset_interface(chp, sc->sc_ahcit, achp->ahcic_scontrol,
 	    achp->ahcic_sstatus) != SStatus_DET_DEV) {
-		printf("%s: port reset failed\n", AHCINAME(sc));
+		printf("%s: port %d reset failed\n", AHCINAME(sc), chp->ch_channel);
 		/* XXX and then ? */
 	}
 	if (chp->ch_queue->active_xfer) {

Reply via email to