Date: Mon, 7 Dec 2009 20:17:33 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r200231 - head/sys/dev/mfi Message-ID: <200912072017.nB7KHXYi064718@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912072017.nB7KHXYi064718>