From 1aa0b96c9d9ff14cd2a8f5f750b45e8eff7f085a Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 14 Aug 2012 04:07:54 +0000 Subject: print the boards name (eg, perc 5/i) according to the firmware like mfii. ok deraadt@ --- sys/dev/ic/mfi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/dev/ic') 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 * @@ -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; -- cgit v1.2.3