From a792f5a214ef3fdeb5e0dc2fd83cb678bb76748e Mon Sep 17 00:00:00 2001 From: jmcneill Date: Tue, 9 Sep 2014 23:39:16 +0000 Subject: fix a sizeof typo --- sys/dev/i2c/axp20x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 @@ -27,7 +27,7 @@ */ #include -__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 #include @@ -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); -- cgit