Module Name:    src
Committed By:   jmcneill
Date:           Tue Sep  9 23:39:16 UTC 2014

Modified Files:
        src/sys/dev/i2c: axp20x.c

Log Message:
fix a sizeof typo


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/axp20x.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/i2c/axp20x.c
diff -u src/sys/dev/i2c/axp20x.c:1.1 src/sys/dev/i2c/axp20x.c:1.2
--- src/sys/dev/i2c/axp20x.c:1.1	Tue Sep  9 22:47:33 2014
+++ src/sys/dev/i2c/axp20x.c	Tue Sep  9 23:39:16 2014
@@ -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 <jmcne...@invisible.ca>
@@ -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 @@ axp20x_attach(device_t parent, device_t 
 	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);
 

Reply via email to