diff options
author | Paul Saab <ps@FreeBSD.org> | 2006-06-20 20:41:54 +0000 |
---|---|---|
committer | Paul Saab <ps@FreeBSD.org> | 2006-06-20 20:41:54 +0000 |
commit | 83ff9c13040e8bd9bf2be9eae6e7831373f447d5 (patch) | |
tree | e2188de19ae4a070987036cdcbaf746021ee75b4 /sys/dev/mfi | |
parent | aff681d2584b907d29fb5f8392f8f98d57779930 (diff) | |
download | src-83ff9c13040e8bd9bf2be9eae6e7831373f447d5.tar.gz src-83ff9c13040e8bd9bf2be9eae6e7831373f447d5.zip |
Clean up some comments and device printf failures in mfi_get_log_state
and mfi_get_controller_info.
Notes
Notes:
svn path=/head/; revision=159802
Diffstat (limited to 'sys/dev/mfi')
-rw-r--r-- | sys/dev/mfi/mfi.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index 53f4811037af..b0cf3026360d 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -511,7 +511,7 @@ mfi_get_controller_info(struct mfi_softc *sc) cm->cm_len = sizeof(struct mfi_ctrl_info); if ((error = mfi_mapcmd(sc, cm)) != 0) { - device_printf(sc->mfi_dev, "Controller info buffer map failed"); + device_printf(sc->mfi_dev, "Controller info buffer map failed\n"); free(ci, M_MFIBUF); mfi_release_command(cm); return (error); @@ -565,16 +565,13 @@ mfi_get_log_state(struct mfi_softc *sc, struct mfi_evt_log_state *log_state) cm->cm_len = sizeof(struct mfi_evt_log_state); if ((error = mfi_mapcmd(sc, cm)) != 0) { - device_printf(sc->mfi_dev, "Controller info buffer map failed"); + device_printf(sc->mfi_dev, "Log state buffer map failed\n"); mfi_release_command(cm); return (error); } - /* It's ok if this fails, just use default info instead */ if ((error = mfi_polled_command(sc, cm)) != 0) { - device_printf(sc->mfi_dev, "Failed to get controller state\n"); - sc->mfi_max_io = (sc->mfi_total_sgl - 1) * PAGE_SIZE / - MFI_SECTOR_LEN; + device_printf(sc->mfi_dev, "Failed to get log state\n"); mfi_release_command(cm); return (0); } |