summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeanna Phillips <deanna@cvs.openbsd.org>2007-02-21 22:37:39 +0000
committerDeanna Phillips <deanna@cvs.openbsd.org>2007-02-21 22:37:39 +0000
commit544dad932b6cfaa70c26198acfbc9f89815ac426 (patch)
tree2e924421f99caa6e1375701996a219a3f7d61e47
parentb874cdc4feb140422d91ac83272de1157b7c905f (diff)
Add missing sensor description for temperature.
ok dlg
-rw-r--r--sys/scsi/safte.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index f3c2335b193..f9626728678 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.32 2006/12/23 17:46:39 deraadt Exp $ */
+/* $OpenBSD: safte.c,v 1.33 2007/02/21 22:37:38 deanna Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -362,6 +362,8 @@ safte_read_config(struct safte_softc *sc)
s->se_type = SAFTE_T_TEMP;
s->se_field = (u_int8_t *)(sc->sc_encbuf + j + i);
s->se_sensor.type = SENSOR_TEMP;
+ snprintf(s->se_sensor.desc, sizeof(s->se_sensor.desc),
+ "Temp%d", i);
s++;
}