Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2007 04:03:15 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 117568 for review
Message-ID:  <200704070403.l3743FPT015593@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=117568

Change 117568 by mjacob@mjexp on 2007/04/07 04:03:15

	Hide bus reset messages within bootverbose
	MFP4 after:	1 days

Affected files ...

.. //depot/projects/mjexp/sys/dev/mpt/mpt_cam.c#14 edit

Differences ...

==== //depot/projects/mjexp/sys/dev/mpt/mpt_cam.c#14 (text+ko) ====

@@ -2963,8 +2963,13 @@
 			break;
 		}
 	case XPT_RESET_DEV:
-		xpt_print(ccb->ccb_h.path, "reset %s\n",
-		    ccb->ccb_h.func_code == XPT_RESET_BUS? "bus" : "device");
+		if (ccb->ccb_h.func_code == XPT_RESET_BUS) {
+			if (bootverbose) {
+				xpt_print(ccb->ccb_h.path, "reset bus\n");
+			}
+		} else {
+			xpt_print(ccb->ccb_h.path, "reset device\n");
+		}
 		CAMLOCK_2_MPTLOCK(mpt);
 		(void) mpt_bus_reset(mpt, tgt, lun, FALSE);
 		MPTLOCK_2_CAMLOCK(mpt);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704070403.l3743FPT015593>