From owner-svn-src-all@FreeBSD.ORG Mon Dec 7 20:17:34 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FE09106566B; Mon, 7 Dec 2009 20:17:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9138FC21; Mon, 7 Dec 2009 20:17:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nB7KHX1G064720; Mon, 7 Dec 2009 20:17:33 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB7KHXYi064718; Mon, 7 Dec 2009 20:17:33 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <200912072017.nB7KHXYi064718@svn.freebsd.org> From: Jung-uk Kim Date: Mon, 7 Dec 2009 20:17:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200231 - head/sys/dev/mfi X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 20:17:34 -0000 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