From 544dad932b6cfaa70c26198acfbc9f89815ac426 Mon Sep 17 00:00:00 2001 From: Deanna Phillips Date: Wed, 21 Feb 2007 22:37:39 +0000 Subject: Add missing sensor description for temperature. ok dlg --- sys/scsi/safte.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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++; } -- cgit v1.2.3