summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-04-06 13:03:10 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-04-06 13:03:10 +0000
commitae26b5a8fb49ac78faa92b79c703ddc8b6ee62e6 (patch)
treea2a3238128b43c863c61081f5d5ef5b49074d9e3 /sys/dev
parent4f17623ff671990469d6f28ad727b9c310bf362f (diff)
fix format string % escape
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/uoakrh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uoakrh.c b/sys/dev/usb/uoakrh.c
index 070d3203d46..2b4656514cc 100644
--- a/sys/dev/usb/uoakrh.c
+++ b/sys/dev/usb/uoakrh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uoakrh.c,v 1.3 2013/03/28 03:58:03 tedu Exp $ */
+/* $OpenBSD: uoakrh.c,v 1.4 2013/04/06 13:03:09 sf Exp $ */
/*
* Copyright (c) 2012 Yojiro UO <yuo@nui.org>
@@ -187,7 +187,7 @@ uoakrh_attach(struct device *parent, struct device *self, void *aux)
(void)snprintf(sc->sc_sensor.temp.desc, sizeof(sc->sc_sensor.temp.desc),
"Temp.(#%s)", scc->sc_udi.udi_serial);
(void)snprintf(sc->sc_sensor.humi.desc, sizeof(sc->sc_sensor.humi.desc),
- "\%RH(#%s)", scc->sc_udi.udi_serial);
+ "%%RH(#%s)", scc->sc_udi.udi_serial);
sensor_attach(&sc->sc_sensordev, &sc->sc_sensor.temp);
sensor_attach(&sc->sc_sensordev, &sc->sc_sensor.humi);