svn commit: r200231 - head/sys/dev/mfi

Jung-uk Kim jkim at FreeBSD.org
Mon Dec 7 20:17:34 UTC 2009


Author: jkim
Date: Mon Dec  7 20:17:33 2009
New Revision: 200231
URL: http://svn.freebsd.org/changeset/base/200231

Log:
  Make mfi(4) little bit less chatty.

Modified:
  head/sys/dev/mfi/mfi.c

Modified: head/sys/dev/mfi/mfi.c
==============================================================================
--- head/sys/dev/mfi/mfi.c	Mon Dec  7 20:05:02 2009	(r200230)
+++ head/sys/dev/mfi/mfi.c	Mon Dec  7 20:17:33 2009	(r200231)
@@ -1081,9 +1081,22 @@ static void
 mfi_decode_evt(struct mfi_softc *sc, struct mfi_evt_detail *detail)
 {
 
-	device_printf(sc->mfi_dev, "%d (%s/0x%04x/%s) - %s\n", detail->seq,
-	    format_timestamp(detail->time), detail->class.members.locale,
-	    format_class(detail->class.members.class), detail->description);
+	switch (detail->class.members.class) {
+	case MFI_EVT_CLASS_DEBUG:
+	case MFI_EVT_CLASS_PROGRESS:
+	case MFI_EVT_CLASS_INFO:
+#ifndef MFI_DEBUG
+		if (!bootverbose)
+			return;
+		/* FALLTHROUGH */
+#endif
+	default:
+		device_printf(sc->mfi_dev, "%d (%s/0x%04x/%s) - %s\n",
+		    detail->seq, format_timestamp(detail->time),
+		    detail->class.members.locale,
+		    format_class(detail->class.members.class),
+		    detail->description);
+	}
 }
 
 static int


More information about the svn-src-head mailing list