PERFORCE change 120065 for review

Matt Jacob mjacob at FreeBSD.org
Sat May 19 18:24:16 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=120065

Change 120065 by mjacob at mjexp on 2007/05/19 18:24:03

	If we're going to complain about a downrev, if KDB is
	defined show a backtrace so we can find out who is
	doen this.

Affected files ...

.. //depot/projects/mjexp/sys/cam/cam_xpt.c#12 edit

Differences ...

==== //depot/projects/mjexp/sys/cam/cam_xpt.c#12 (text+ko) ====

@@ -66,6 +66,9 @@
 #include <cam/scsi/scsi_message.h>
 #include <cam/scsi/scsi_pass.h>
 #include <machine/stdarg.h>	/* for xpt_print below */
+#ifdef	KDB
+#include <sys/kdb.h>
+#endif
 #include "opt_cam.h"
 
 /* Datastructures internal to the xpt layer */
@@ -6474,15 +6477,21 @@
 	if (cts->protocol != device->protocol) {
 		xpt_print(cts->ccb_h.path, "Uninitialized Protocol %x:%x?\n",
 		       cts->protocol, device->protocol);
+#ifdef	KDB
+		kdb_backtrace();
+#endif
 		cts->protocol = device->protocol;
 	}
 
 	if (cts->protocol_version > device->protocol_version) {
 		if (bootverbose) {
-			xpt_print(cts->ccb_h.path, "Down reving Protocol "
+			xpt_print(cts->ccb_h.path, "Down-reving Protocol "
 			    "Version from %d to %d?\n", cts->protocol_version,
 			    device->protocol_version);
 		}
+#ifdef	KDB
+		kdb_backtrace();
+#endif
 		cts->protocol_version = device->protocol_version;
 	}
 
@@ -6499,15 +6508,21 @@
 	if (cts->transport != device->transport) {
 		xpt_print(cts->ccb_h.path, "Uninitialized Transport %x:%x?\n",
 		    cts->transport, device->transport);
+#ifdef	KDB
+		kdb_backtrace();
+#endif
 		cts->transport = device->transport;
 	}
 
 	if (cts->transport_version > device->transport_version) {
 		if (bootverbose) {
-			xpt_print(cts->ccb_h.path, "Down reving Transport "
+			xpt_print(cts->ccb_h.path, "Down-reving Transport "
 			    "Version from %d to %d?\n", cts->transport_version,
 			    device->transport_version);
 		}
+#ifdef	KDB
+		kdb_backtrace();
+#endif
 		cts->transport_version = device->transport_version;
 	}
 


More information about the p4-projects mailing list