diff options
author | jkim <jkim@FreeBSD.org> | 2009-12-07 20:17:33 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-12-07 20:17:33 +0000 |
commit | d7dd17cebe2cf34b49ea253ab1763b7bd9b6a393 (patch) | |
tree | 2230bd406753ad87ea313176d7aca3124f0e2f4a /sys/dev/mfi | |
parent | c61e7af92e516b7ab0010e0c7129ab878fb7f823 (diff) | |
download | FreeBSD-src-d7dd17cebe2cf34b49ea253ab1763b7bd9b6a393.zip FreeBSD-src-d7dd17cebe2cf34b49ea253ab1763b7bd9b6a393.tar.gz |
Make mfi(4) little bit less chatty.
Diffstat (limited to 'sys/dev/mfi')
-rw-r--r-- | sys/dev/mfi/mfi.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index eb18ffe..61abca1 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -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 |