summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2007-07-31 21:34:40 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2007-07-31 21:34:40 +0000
commit09b5445141f84d01c2504c6c9ba37e3451105c68 (patch)
treefa1ce6c2268722de541f4df95ccd9a7f56b76da9 /sys
parent891e350d14451ca34478602af2920d2bd45eac75 (diff)
don't duplicate .numt in .desc; 'In this driver, whatever you want' deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/i2c/pca9554.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/i2c/pca9554.c b/sys/dev/i2c/pca9554.c
index aabf87a0f46..62f00cc6750 100644
--- a/sys/dev/i2c/pca9554.c
+++ b/sys/dev/i2c/pca9554.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pca9554.c,v 1.13 2007/07/31 21:24:37 cnst Exp $ */
+/* $OpenBSD: pca9554.c,v 1.14 2007/07/31 21:34:39 cnst Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -120,12 +120,12 @@ pcagpio_attach(struct device *parent, struct device *self, void *aux)
for (i = 0; i < PCAGPIO_NPINS; i++) {
sc->sc_sensor[i].type = SENSOR_INDICATOR;
if ((sc->sc_control & (1 << i)) == 0) {
- snprintf(sc->sc_sensor[i].desc,
- sizeof(sc->sc_sensor[i].desc), "out%d", i);
+ strlcpy(sc->sc_sensor[i].desc, "out",
+ sizeof(sc->sc_sensor[i].desc));
outputs++;
} else
- snprintf(sc->sc_sensor[i].desc,
- sizeof(sc->sc_sensor[i].desc), "in%d", i);
+ strlcpy(sc->sc_sensor[i].desc, "in",
+ sizeof(sc->sc_sensor[i].desc));
}