diff options
author | msmith <msmith@FreeBSD.org> | 2000-07-20 02:31:56 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-07-20 02:31:56 +0000 |
commit | ca477cc774e4a9850e0e46e91567f8bab36f9ed7 (patch) | |
tree | 63e27a330f12b653b951f5523124072ba624232c /sys | |
parent | a260febdf9a88b98088a64af2f0a3bee88ef86ce (diff) | |
download | FreeBSD-src-ca477cc774e4a9850e0e46e91567f8bab36f9ed7.zip FreeBSD-src-ca477cc774e4a9850e0e46e91567f8bab36f9ed7.tar.gz |
Remove some confusing verbosity - we have no idea what RAID level the
drive is at, so don't print the 'unknown' value, just say nothing.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/twe/twe_disk.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/dev/twe/twe_disk.c b/sys/dev/twe/twe_disk.c index 85fbf15..cc49ad1 100644 --- a/sys/dev/twe/twe_disk.c +++ b/sys/dev/twe/twe_disk.c @@ -230,7 +230,6 @@ twed_attach(device_t dev) { struct twed_softc *sc = (struct twed_softc *)device_get_softc(dev); device_t parent; - char *state; dev_t dsk; debug_called(4); @@ -241,24 +240,10 @@ twed_attach(device_t dev) sc->twed_drive = device_get_ivars(dev); sc->twed_dev = dev; - /* report some basic status */ - switch(sc->twed_drive->td_state) { - case TWE_DRIVE_READY: - state = "ready"; - break; - case TWE_DRIVE_DEGRADED: - state = "degraded"; - break; - case TWE_DRIVE_OFFLINE: - state = "offline"; - break; - default: - state = "unknown"; - break; - } - device_printf(dev, "%uMB (%u sectors) RAID %d (%s)\n", + /* report the drive */ + device_printf(dev, "%uMB (%u sectors)\n", sc->twed_drive->td_size / ((1024 * 1024) / TWE_BLOCK_SIZE), - sc->twed_drive->td_size, sc->twed_drive->td_raidlevel, state); + sc->twed_drive->td_size); devstat_add_entry(&sc->twed_stats, "twed", device_get_unit(dev), TWE_BLOCK_SIZE, DEVSTAT_NO_ORDERED_TAGS, |