summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2017-03-29 09:04:35 +0000
committermsaitoh <msaitoh@NetBSD.org>2017-03-29 09:04:35 +0000
commit2d8bf54a5c424ee4c44b5a3ad080f0641d2f4e80 (patch)
tree88cd9fa8420a544cd0ea75f77afe6cd70836b31b /sys
parentbeb228734ad357a3ec150a5d1299e7f4d82daabb (diff)
Fix 0x%d and 0x%u.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/evbarm/stand/boot2440/dm9000.c4
-rw-r--r--sys/arch/xen/xen/xpci_xenbus.c6
-rw-r--r--sys/dev/ic/wdc.c6
-rw-r--r--sys/dev/ic/wi.c6
-rw-r--r--sys/dev/isa/nsclpcsio_isa.c6
-rw-r--r--sys/dev/pci/piixpm.c8
6 files changed, 18 insertions, 18 deletions
diff --git a/sys/arch/evbarm/stand/boot2440/dm9000.c b/sys/arch/evbarm/stand/boot2440/dm9000.c
index 6939efef15e..54c6e0f19c3 100644
--- a/sys/arch/evbarm/stand/boot2440/dm9000.c
+++ b/sys/arch/evbarm/stand/boot2440/dm9000.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm9000.c,v 1.2 2012/02/23 22:20:51 nisimura Exp $ */
+/* $NetBSD: dm9000.c,v 1.3 2017/03/29 09:04:35 msaitoh Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -193,7 +193,7 @@ dm9k_init(unsigned int tag, void *aux)
unsigned int val, fdx;
val = CSR_READ_1(l, CHIPR);
- printf("DM9000 rev. 0x%d", val);
+ printf("DM9000 rev. %#x", val);
val = CSR_READ_1(l, ISR);
printf(", %d bit mode\n", (val & 1<<7) ? 8 : 16);
diff --git a/sys/arch/xen/xen/xpci_xenbus.c b/sys/arch/xen/xen/xpci_xenbus.c
index 77b300c174e..11868df8d2a 100644
--- a/sys/arch/xen/xen/xpci_xenbus.c
+++ b/sys/arch/xen/xen/xpci_xenbus.c
@@ -1,4 +1,4 @@
-/* $NetBSD: xpci_xenbus.c,v 1.14 2013/10/13 12:29:42 tsutsui Exp $ */
+/* $NetBSD: xpci_xenbus.c,v 1.15 2017/03/29 09:04:35 msaitoh Exp $ */
/*
* Copyright (c) 2009 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xpci_xenbus.c,v 1.14 2013/10/13 12:29:42 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xpci_xenbus.c,v 1.15 2017/03/29 09:04:35 msaitoh Exp $");
#include "opt_xen.h"
@@ -188,7 +188,7 @@ xpci_xenbus_resume(void *p)
error = xenbus_grant_ring(sc->sc_xbusd, ma, &sc->sc_shared_gntref);
if (error)
return error;
- DPRINTF(("shared %p ma 0x%jx ref 0x%u\n", shared, (uintmax_t)ma,
+ DPRINTF(("shared %p ma 0x%jx ref %#x\n", shared, (uintmax_t)ma,
sc->sc_shared_gntref));
error = xenbus_alloc_evtchn(sc->sc_xbusd, &sc->sc_evtchn);
if (error)
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index c488af9f0ab..b651fc354dc 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc.c,v 1.282 2016/08/17 22:03:02 skrll Exp $ */
+/* $NetBSD: wdc.c,v 1.283 2017/03/29 09:04:35 msaitoh Exp $ */
/*
* Copyright (c) 1998, 2001, 2003 Manuel Bouyer. All rights reserved.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.282 2016/08/17 22:03:02 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.283 2017/03/29 09:04:35 msaitoh Exp $");
#include "opt_ata.h"
#include "opt_wdc.h"
@@ -698,7 +698,7 @@ wdcprobe1(struct ata_channel *chp, int poll)
ret_value = __wdcwait_reset(chp, ret_value, poll);
s = splbio();
#endif
- ATADEBUG_PRINT(("%s:%d: after reset, ret_value=0x%d\n",
+ ATADEBUG_PRINT(("%s:%d: after reset, ret_value=%#x\n",
__func__, chp->ch_channel, ret_value), DEBUG_PROBE);
/* if reset failed, there's nothing here */
diff --git a/sys/dev/ic/wi.c b/sys/dev/ic/wi.c
index 7beb87ed79a..8314f7fef73 100644
--- a/sys/dev/ic/wi.c
+++ b/sys/dev/ic/wi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wi.c,v 1.242 2017/02/02 10:05:35 nonaka Exp $ */
+/* $NetBSD: wi.c,v 1.243 2017/03/29 09:04:35 msaitoh Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.242 2017/02/02 10:05:35 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.243 2017/03/29 09:04:35 msaitoh Exp $");
#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
@@ -3393,7 +3393,7 @@ wi_dump_pkt(struct wi_frame *wh, struct ieee80211_node *ni, int rssi)
ni ? ni->ni_rates.rs_rates[ni->ni_txrate] & IEEE80211_RATE_VAL
: -1,
rssi);
- printf(" status 0x%x rx_tstamp1 %u rx_tstamp0 0x%u rx_silence %u\n",
+ printf(" status 0x%x rx_tstamp1 %#x rx_tstamp0 %#x rx_silence %u\n",
le16toh(wh->wi_status), le16toh(wh->wi_rx_tstamp1),
le16toh(wh->wi_rx_tstamp0), wh->wi_rx_silence);
printf(" rx_signal %u rx_rate %u rx_flow %u\n",
diff --git a/sys/dev/isa/nsclpcsio_isa.c b/sys/dev/isa/nsclpcsio_isa.c
index 3cdd5c2ba7e..f3aee7a75b7 100644
--- a/sys/dev/isa/nsclpcsio_isa.c
+++ b/sys/dev/isa/nsclpcsio_isa.c
@@ -1,4 +1,4 @@
-/* $NetBSD: nsclpcsio_isa.c,v 1.31 2015/04/23 23:23:00 pgoyette Exp $ */
+/* $NetBSD: nsclpcsio_isa.c,v 1.32 2017/03/29 09:04:36 msaitoh Exp $ */
/*
* Copyright (c) 2002
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nsclpcsio_isa.c,v 1.31 2015/04/23 23:23:00 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nsclpcsio_isa.c,v 1.32 2017/03/29 09:04:36 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -357,7 +357,7 @@ nsclpcsio_isa_attach(device_t parent, device_t self, void *aux)
return;
}
- aprint_normal(": NSC PC87366 rev. 0x%d ",
+ aprint_normal(": NSC PC87366 rev. %d ",
nsread(sc->sc_iot, sc->sc_ioh, SIO_REG_SRID));
/* Configure all supported logical devices */
diff --git a/sys/dev/pci/piixpm.c b/sys/dev/pci/piixpm.c
index 45969be1d3a..3dfaae8df2d 100644
--- a/sys/dev/pci/piixpm.c
+++ b/sys/dev/pci/piixpm.c
@@ -1,4 +1,4 @@
-/* $NetBSD: piixpm.c,v 1.51 2016/10/13 17:11:09 jdolecek Exp $ */
+/* $NetBSD: piixpm.c,v 1.52 2017/03/29 09:04:36 msaitoh Exp $ */
/* $OpenBSD: piixpm.c,v 1.20 2006/02/27 08:25:02 grange Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.51 2016/10/13 17:11:09 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.52 2017/03/29 09:04:36 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -490,7 +490,7 @@ piixpm_i2c_exec(void *cookie, i2c_op_t op, i2c_addr_t addr,
break;
DELAY(PIIXPM_DELAY);
}
- DPRINTF(("%s: exec: st 0x%d\n", device_xname(sc->sc_dev), st & 0xff));
+ DPRINTF(("%s: exec: st %#x\n", device_xname(sc->sc_dev), st & 0xff));
if (st & PIIX_SMB_HS_BUSY)
return (1);
@@ -615,7 +615,7 @@ piixpm_intr(void *arg)
/* Interrupt was not for us */
return (0);
- DPRINTF(("%s: intr st 0x%d\n", device_xname(sc->sc_dev), st & 0xff));
+ DPRINTF(("%s: intr st %#x\n", device_xname(sc->sc_dev), st & 0xff));
/* Clear status bits */
bus_space_write_1(sc->sc_smb_iot, sc->sc_smb_ioh, PIIX_SMB_HS, st);