diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2012-08-14 04:07:54 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2012-08-14 04:07:54 +0000 |
commit | 1aa0b96c9d9ff14cd2a8f5f750b45e8eff7f085a (patch) | |
tree | bd3a8e773b57d7d28188ff94e780482f2eaac281 /sys/dev | |
parent | d1a7be171191e4f8d64f69f2dad8b77ef6e5c58f (diff) |
print the boards name (eg, perc 5/i) according to the firmware like mfii.
ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/mfi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 620d53d6ce0..ed02ac29cc8 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.127 2012/08/14 03:42:03 dlg Exp $ */ +/* $OpenBSD: mfi.c,v 1.128 2012/08/14 04:07:53 dlg Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -735,11 +735,11 @@ mfi_attach(struct mfi_softc *sc, enum mfi_iop iop) goto noinit; } - printf("%s: logical drives %d, version %s, %dMB RAM\n", - DEVNAME(sc), - sc->sc_info.mci_lds_present, - sc->sc_info.mci_package_version, - sc->sc_info.mci_memory_size); + printf("%s: \"%s\", firmware %s", DEVNAME(sc), + sc->sc_info.mci_product_name, sc->sc_info.mci_package_version); + if (letoh16(sc->sc_info.mci_memory_size) > 0) + printf(", %uMB cache", letoh16(sc->sc_info.mci_memory_size)); + printf("\n"); sc->sc_ld_cnt = sc->sc_info.mci_lds_present; sc->sc_max_ld = sc->sc_ld_cnt; |