summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2004-04-04 03:24:33 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2004-04-04 03:24:33 +0000
commit9ef612a0b056e6ec51cd32d771ba33546e946696 (patch)
tree11e997080a55f270517768b6a2b7376493350cf4 /sys
parent255524b05ddb4f98c079172fbe8fe6f013ffb28e (diff)
Don't print firmware upload messages in dmesg. Pointed out deraadt@, ok krw@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/mpt.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/ic/mpt.c b/sys/dev/ic/mpt.c
index d5efe1cb2d8..d0df5afcf15 100644
--- a/sys/dev/ic/mpt.c
+++ b/sys/dev/ic/mpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpt.c,v 1.4 2004/03/20 03:54:16 krw Exp $ */
+/* $OpenBSD: mpt.c,v 1.5 2004/04/04 03:24:32 marco Exp $ */
/* $NetBSD: mpt.c,v 1.4 2003/11/02 11:07:45 wiz Exp $ */
/*
@@ -1231,7 +1231,10 @@ mpt_init(mpt_softc_t *mpt, u_int32_t who)
/* XXX MU correct place the call to fw_upload? */
if (mpt->upload_fw) {
- mpt_prt(mpt, "firmware upload required.");
+ if (mpt->verbose > 1) {
+ mpt_prt(mpt, "firmware upload required.");
+ }
+
if (mpt_do_upload(mpt)) {
/* XXX MP should we panic? */
mpt_prt(mpt, "firmware upload failure!\n");
@@ -1239,7 +1242,9 @@ mpt_init(mpt_softc_t *mpt, u_int32_t who)
/* continue; */
}
else {
- mpt_prt(mpt, "firmware upload not required.");
+ if (mpt->verbose > 1) {
+ mpt_prt(mpt, "firmware upload not required.");
+ }
}
/*