summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2014-09-09 23:39:16 +0000
committerjmcneill <jmcneill@NetBSD.org>2014-09-09 23:39:16 +0000
commita792f5a214ef3fdeb5e0dc2fd83cb678bb76748e (patch)
tree52c005f8fd0156bebc9d9340c4c2a6cf25e88321 /sys/dev
parentadf67a686dd9eb5df06c2d345d24af5ffc49c2fb (diff)
fix a sizeof typo
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/axp20x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2c/axp20x.c b/sys/dev/i2c/axp20x.c
index e0e1b2c2dc7..9f0656471a1 100644
--- a/sys/dev/i2c/axp20x.c
+++ b/sys/dev/i2c/axp20x.c
@@ -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>
@@ -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 self, void *aux)
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);