diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-18 18:31:05 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-18 18:31:05 +0000 |
commit | c6d0cb3804320d9e2ed2ad8f710263ef46dcc7db (patch) | |
tree | da73204ec5dfbb4339412be547a1969ed60d6804 /sys/dev | |
parent | 8a4912199489f8bbbdb1bedb535e3d64086636c5 (diff) |
Make output in sysctl pretier.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ami.c | 7 |
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; |