summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-08-18 15:23:14 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-08-18 15:23:14 +0000
commit848d2552749a54b9ed90d36c9c804967f0dac8d6 (patch)
tree69e4deb11df780c61abe1976b0b46b8b990a7c14 /sys
parentc99859fda934f9679d23f0eac717760e6fc29f29 (diff)
fix a printf format string
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_ral.c4
-rw-r--r--sys/dev/usb/if_rum.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index ebdde9c779e..5ec3f5313e2 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.73 2006/08/18 15:18:24 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.74 2006/08/18 15:23:13 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -297,7 +297,7 @@ USB_ATTACH(ural)
/* retrieve MAC address and various other things from EEPROM */
ural_read_eeprom(sc);
- printf("%s: MAC/BBP RT%02x (rev 0x%02x), RF %s, address %s\n",
+ printf("%s: MAC/BBP RT%04x (rev 0x%02x), RF %s, address %s\n",
USBDEVNAME(sc->sc_dev), sc->macbbp_rev, sc->asic_rev,
ural_get_rf(sc->rf_rev), ether_sprintf(ic->ic_myaddr));
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index 2d6d1bf87f8..a582c371cd1 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rum.c,v 1.33 2006/08/18 15:11:11 damien Exp $ */
+/* $OpenBSD: if_rum.c,v 1.34 2006/08/18 15:23:13 damien Exp $ */
/*-
* Copyright (c) 2005, 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -323,7 +323,7 @@ USB_ATTACH(rum)
/* retrieve MAC address and various other things from EEPROM */
rum_read_eeprom(sc);
- printf("%s: MAC/BBP RT%02x (rev 0x%02x), RF %s, address %s\n",
+ printf("%s: MAC/BBP RT%04x (rev 0x%05x), RF %s, address %s\n",
USBDEVNAME(sc->sc_dev), sc->macbbp_rev, tmp,
rum_get_rf(sc->rf_rev), ether_sprintf(ic->ic_myaddr));