Module Name:    src
Committed By:   skrll
Date:           Fri Mar 22 13:20:12 UTC 2013

Modified Files:
        src/sys/dev/usb: ohci.c

Log Message:
When dumping the done list in ohci_softintr / OHCI_DEBUG use the correct
list next pointer.

PR/33450 and part of PR/35379.


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/sys/dev/usb/ohci.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/usb/ohci.c
diff -u src/sys/dev/usb/ohci.c:1.233 src/sys/dev/usb/ohci.c:1.234
--- src/sys/dev/usb/ohci.c:1.233	Fri Mar 22 12:47:56 2013
+++ src/sys/dev/usb/ohci.c	Fri Mar 22 13:20:12 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ohci.c,v 1.233 2013/03/22 12:47:56 skrll Exp $	*/
+/*	$NetBSD: ohci.c,v 1.234 2013/03/22 13:20:12 skrll Exp $	*/
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.233 2013/03/22 12:47:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.234 2013/03/22 13:20:12 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1311,7 +1311,8 @@ ohci_softintr(void *v)
 #ifdef OHCI_DEBUG
 	if (ohcidebug > 10) {
 		DPRINTF(("ohci_process_done: TD done:\n"));
-		ohci_dump_tds(sc, sdone);
+		for (std = sdone; std; std = std->dnext)
+			ohci_dump_td(sc, std);	
 	}
 #endif
 
@@ -1388,7 +1389,8 @@ ohci_softintr(void *v)
 #ifdef OHCI_DEBUG
 	if (ohcidebug > 10) {
 		DPRINTF(("ohci_softintr: ITD done:\n"));
-		ohci_dump_itds(sc, sidone);
+		for (sitd = sidone; sitd; sitd = sitd->dnext)
+			ohci_dump_itd(sc, sitd);	
 	}
 #endif
 

Reply via email to