Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Use "temperature" rather than "TEMP" as the sens...



details:   https://anonhg.NetBSD.org/src/rev/4c2d41cc1e80
branches:  trunk
changeset: 760196:4c2d41cc1e80
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Dec 30 19:27:27 2010 +0000

description:
Use "temperature" rather than "TEMP" as the sensor name. No functional change.

diffstat:

 sys/dev/pci/if_iwn.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r c61581f6a2e5 -r 4c2d41cc1e80 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Thu Dec 30 18:38:50 2010 +0000
+++ b/sys/dev/pci/if_iwn.c      Thu Dec 30 19:27:27 2010 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index