Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c fix a sizeof typo



details:   https://anonhg.NetBSD.org/src/rev/7bb11c5c78a7
branches:  trunk
changeset: 332180:7bb11c5c78a7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Sep 09 23:39:16 2014 +0000

description:
fix a sizeof typo

diffstat:

 sys/dev/i2c/axp20x.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1f88ec3de64f -r 7bb11c5c78a7 sys/dev/i2c/axp20x.c
--- a/sys/dev/i2c/axp20x.c      Tue Sep 09 22:49:20 2014 +0000
+++ b/sys/dev/i2c/axp20x.c      Tue Sep 09 23:39:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: axp20x.c,v 1.1 2014/09/09 22:47:33 jmcneill Exp $ */
+/* $NetBSD: axp20x.c,v 1.2 2014/09/09 23:39:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.1 2014/09/09 22:47:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.2 2014/09/09 23:39:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -87,7 +87,7 @@
        sc->sc_sensor_temp.units = ENVSYS_STEMP;
        sc->sc_sensor_temp.state = ENVSYS_SINVALID;
        sc->sc_sensor_temp.flags = ENVSYS_FHAS_ENTROPY;
-       snprintf(sc->sc_sensor_temp.desc, sizeof(sc->sc_sensor_temp),
+       snprintf(sc->sc_sensor_temp.desc, sizeof(sc->sc_sensor_temp.desc),
            "internal temperature");
        sysmon_envsys_sensor_attach(sc->sc_sme, &sc->sc_sensor_temp);
 



Home | Main Index | Thread Index | Old Index