Module Name: src
Committed By: jruoho
Date: Thu Dec 30 19:27:28 UTC 2010
Modified Files:
src/sys/dev/pci: if_iwn.c
Log Message:
Use "temperature" rather than "TEMP" as the sensor name. No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/pci/if_iwn.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_iwn.c
diff -u src/sys/dev/pci/if_iwn.c:1.51 src/sys/dev/pci/if_iwn.c:1.52
--- src/sys/dev/pci/if_iwn.c:1.51 Thu Dec 30 18:27:01 2010
+++ src/sys/dev/pci/if_iwn.c Thu Dec 30 19:27:27 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwn.c,v 1.51 2010/12/30 18:27:01 jruoho Exp $ */
+/* $NetBSD: if_iwn.c,v 1.52 2010/12/30 19:27:27 jruoho Exp $ */
/* $OpenBSD: if_iwn.c,v 1.96 2010/05/13 09:25:03 damien Exp $ */
/*-
@@ -22,7 +22,7 @@
* adapters.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.51 2010/12/30 18:27:01 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.52 2010/12/30 19:27:27 jruoho Exp $");
#define IWN_USE_RBUF /* Use local storage for RX */
#undef IWN_HWCRYPTO /* XXX does not even compile yet */
@@ -768,7 +768,8 @@
sc->sc_sensor.flags = ENVSYS_FMONLIMITS | ENVSYS_FMONNOTSUPP;
sc->sc_sensor.limits.sel_critmax = IWN_CTOK(110);
#endif
- strlcpy((sc->sc_sensor.desc), "TEMP", sizeof(sc->sc_sensor.desc));
+ (void)strlcpy(sc->sc_sensor.desc,
+ "temperature", sizeof(sc->sc_sensor.desc));
/* Temperature is not valid unless interface is up. */
sc->sc_sensor.value_cur = 0;