summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-04-18 18:31:05 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-04-18 18:31:05 +0000
commitc6d0cb3804320d9e2ed2ad8f710263ef46dcc7db (patch)
treeda73204ec5dfbb4339412be547a1969ed60d6804 /sys/dev
parent8a4912199489f8bbbdb1bedb535e3d64086636c5 (diff)
Make output in sysctl pretier.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ami.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index c7adec3d62d..7bc2206d019 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.144 2006/04/18 04:15:44 marco Exp $ */
+/* $OpenBSD: ami.c,v 1.145 2006/04/18 18:31:04 marco Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -2454,8 +2454,9 @@ ami_refresh(void *arg)
for (i = 0; i < sc->sc_nunits; i++) {
strlcpy(sc->sc_sens_ld[i].device, sc->sc_hdr[i].dev,
sizeof(sc->sc_sens_ld[i].device));
- strlcpy(sc->sc_sens_ld[i].desc, "logical disk",
- sizeof(sc->sc_sens_ld[i].desc));
+ snprintf(sc->sc_sens_ld[i].desc,
+ sizeof(sc->sc_sens_ld[i].desc), "%s %d",
+ DEVNAME(sc), i);
sc->sc_sens_ld[i].type = SENSOR_DRIVE;
sensor_add(&sc->sc_sens_ld[i]);
sc->sc_sens_ld[i].value = SENSOR_DRIVE_ONLINE;