Date: Sat, 19 May 2007 18:24:15 GMT From: Matt Jacob <mjacob@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 120065 for review Message-ID: <200705191824.l4JIOFSm012174@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=120065 Change 120065 by mjacob@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705191824.l4JIOFSm012174>