diff options
author | 2005-05-22 19:40:51 +0000 | |
---|---|---|
committer | 2005-05-22 19:40:51 +0000 | |
commit | 24d2ca94e19250abd73350649786729f5383523c (patch) | |
tree | ceb034508acab8d4250eb4cbaa9eda1b0923c6fb | |
parent | ALTQ cleanout (diff) | |
download | wireguard-openbsd-24d2ca94e19250abd73350649786729f5383523c.tar.xz wireguard-openbsd-24d2ca94e19250abd73350649786729f5383523c.zip |
remove "0x" in front of %p in printfs.
eyeballed by krw@
-rw-r--r-- | sys/arch/arm/footbridge/footbridge_pci.c | 4 | ||||
-rw-r--r-- | sys/arch/m88k/m88k/pmap.c | 14 | ||||
-rw-r--r-- | sys/arch/mac68k/dev/if_sn.c | 4 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/macrom.c | 6 | ||||
-rw-r--r-- | sys/arch/mips64/mips64/db_machdep.c | 4 | ||||
-rw-r--r-- | sys/dev/ccd.c | 4 | ||||
-rw-r--r-- | sys/dev/isa/ad1848.c | 4 | ||||
-rw-r--r-- | sys/dev/tc/asc_tcds.c | 4 |
8 files changed, 22 insertions, 22 deletions
diff --git a/sys/arch/arm/footbridge/footbridge_pci.c b/sys/arch/arm/footbridge/footbridge_pci.c index 44e2da82404..460b5d7cb42 100644 --- a/sys/arch/arm/footbridge/footbridge_pci.c +++ b/sys/arch/arm/footbridge/footbridge_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: footbridge_pci.c,v 1.4 2004/08/17 19:40:45 drahn Exp $ */ +/* $OpenBSD: footbridge_pci.c,v 1.5 2005/05/22 19:40:51 art Exp $ */ /* $NetBSD: footbridge_pci.c,v 1.4 2001/09/05 16:17:35 matt Exp $ */ /* @@ -337,7 +337,7 @@ footbridge_pci_intr_string(pcv, ih) static char irqstr[32]; #ifdef PCI_DEBUG - printf("footbridge_pci_intr_string(pcv=0x%p, ih=0x%lx)\n", pcv, ih); + printf("footbridge_pci_intr_string(pcv=%p, ih=0x%lx)\n", pcv, ih); #endif if (ih == 0) panic("footbridge_pci_intr_string: bogus handle 0x%lx", ih); diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c index 19a9cd9fb44..6dc27f9ad0d 100644 --- a/sys/arch/m88k/m88k/pmap.c +++ b/sys/arch/m88k/m88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.8 2005/04/04 11:45:33 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.9 2005/05/22 19:40:51 art Exp $ */ /* * Copyright (c) 2001-2004, Miodrag Vallat * Copyright (c) 1998-2001 Steve Murphree, Jr. @@ -417,7 +417,7 @@ pmap_map(vaddr_t virt, paddr_t start, paddr_t end, vm_prot_t prot, u_int cmode) #ifdef DEBUG if ((pmap_con_dbg & (CD_MAP | CD_FULL)) == (CD_MAP | CD_FULL)) if (PDT_VALID(pte)) - printf("(pmap_map: %x) pte @ 0x%p already valid\n", curproc, pte); + printf("(pmap_map: %x) pte @ %p already valid\n", curproc, pte); #endif *pte = template | page; @@ -485,7 +485,7 @@ pmap_cache_ctrl(pmap_t pmap, vaddr_t s, vaddr_t e, u_int mode) continue; #ifdef DEBUG if (pmap_con_dbg & CD_CACHE) { - printf("(cache_ctrl) pte@0x%p\n", pte); + printf("(cache_ctrl) pte@%p\n", pte); } #endif /* DEBUG */ /* @@ -893,7 +893,7 @@ pmap_create(void) (int)stpa); if (pmap_con_dbg & CD_CREAT) { - printf("(pmap_create: %x) pmap=0x%p, pm_stab=0x%x (pa 0x%x)\n", + printf("(pmap_create: %x) pmap=%p, pm_stab=0x%x (pa 0x%x)\n", curproc, pmap, pmap->pm_stab, stpa); } #endif @@ -1145,7 +1145,7 @@ pmap_remove_pte(pmap_t pmap, vaddr_t va, pt_entry_t *pte) } if (cur == PV_ENTRY_NULL) { panic("pmap_remove_pte: mapping for va " - "0x%lx (pa 0x%lx) not in pv list at 0x%p", + "0x%lx (pa 0x%lx) not in pv list at %p", va, pa, pvl); } @@ -1986,7 +1986,7 @@ pmap_activate(struct proc *p) #ifdef DEBUG if (pmap_con_dbg & CD_ACTIVATE) - printf("(pmap_activate: %x) pmap 0x%p\n", p, pmap); + printf("(pmap_activate: %x) pmap %p\n", p, pmap); #endif if (pmap != kernel_pmap) { @@ -2276,7 +2276,7 @@ testbit_Retry: pvl->pv_flags |= bit; #ifdef DEBUG if ((pmap_con_dbg & (CD_TBIT | CD_FULL)) == (CD_TBIT | CD_FULL)) - printf("(pmap_testbit: %x) true on page pte@0x%p\n", curproc, pte); + printf("(pmap_testbit: %x) true on page pte@%p\n", curproc, pte); #endif SPLX(spl); return (TRUE); diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c index 41ed5e3c7ee..271fb8e7967 100644 --- a/sys/arch/mac68k/dev/if_sn.c +++ b/sys/arch/mac68k/dev/if_sn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn.c,v 1.35 2005/01/04 19:53:37 brad Exp $ */ +/* $OpenBSD: if_sn.c,v 1.36 2005/05/22 19:40:51 art Exp $ */ /* $NetBSD: if_sn.c,v 1.13 1997/04/25 03:40:10 briggs Exp $ */ /* @@ -1094,7 +1094,7 @@ sonic_read(sc, pkt, len) #ifdef SNDEBUG { - printf("%s: rcvd 0x%p len=%d type=0x%x from %s", + printf("%s: rcvd %p len=%d type=0x%x from %s", sc->sc_dev.dv_xname, et, len, htons(et->ether_type), ether_sprintf(et->ether_shost)); printf(" (to %s)\n", ether_sprintf(et->ether_dhost)); diff --git a/sys/arch/mac68k/mac68k/macrom.c b/sys/arch/mac68k/mac68k/macrom.c index b85ab4f5c8e..13e121ea88e 100644 --- a/sys/arch/mac68k/mac68k/macrom.c +++ b/sys/arch/mac68k/mac68k/macrom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macrom.c,v 1.28 2005/04/27 00:12:43 miod Exp $ */ +/* $OpenBSD: macrom.c,v 1.29 2005/05/22 19:40:51 art Exp $ */ /* $NetBSD: macrom.c,v 1.47 2000/11/15 07:15:36 scottr Exp $ */ /*- @@ -839,7 +839,7 @@ mrg_init() .word 0xa99d movl sp@+, %0" : "=g" (handle)); - printf("Handle to first DRVR resource is 0x%p\n", handle); + printf("Handle to first DRVR resource is %p\n", handle); printf("DRVR: 0x%08lx -> 0x%08lx -> 0x%08lx\n", (long)Get_Ind_Resource(0x44525652, 1), (long)*Get_Ind_Resource(0x44525652, 1), @@ -851,7 +851,7 @@ mrg_init() .word 0xa99d movl sp@+, %0" : "=g" (handle)); - printf("Handle to second DRVR resource is 0x%p\n", handle); + printf("Handle to second DRVR resource is %p\n", handle); printf("DRVR: 0x%08lx -> 0x%08lx -> 0x%08lx\n", (long)Get_Ind_Resource(0x44525652, 2), (long)*Get_Ind_Resource(0x44525652, 2), diff --git a/sys/arch/mips64/mips64/db_machdep.c b/sys/arch/mips64/mips64/db_machdep.c index 7a97b1d8d28..d8596a700fc 100644 --- a/sys/arch/mips64/mips64/db_machdep.c +++ b/sys/arch/mips64/mips64/db_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.c,v 1.8 2004/10/30 14:48:59 pefo Exp $ */ +/* $OpenBSD: db_machdep.c,v 1.9 2005/05/22 19:40:51 art Exp $ */ /* * Copyright (c) 1998-2003 Opsycon AB (www.opsycon.se) @@ -268,7 +268,7 @@ loop: /* check for bad PC */ if (pc & 3 || pc < KSEG0_BASE || pc >= (unsigned)edata) { - (*pr)("PC 0x%p: not in kernel\n", pc); + (*pr)("PC %p: not in kernel\n", pc); ra = 0; goto done; } diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index cf29f17b6ed..14b5d3290e0 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.61 2005/05/12 17:16:06 niallo Exp $ */ +/* $OpenBSD: ccd.c,v 1.62 2005/05/22 19:40:51 art Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -1250,7 +1250,7 @@ ccdioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) #ifdef DEBUG if (ccddebug & CCDB_INIT) for (i = 0; i < ccio->ccio_ndisks; ++i) - printf("ccdioctl: component %d: 0x%p\n", + printf("ccdioctl: component %d: %p\n", i, cpp[i]); #endif diff --git a/sys/dev/isa/ad1848.c b/sys/dev/isa/ad1848.c index 13379dc5ab2..d2cdfad6a39 100644 --- a/sys/dev/isa/ad1848.c +++ b/sys/dev/isa/ad1848.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ad1848.c,v 1.31 2005/04/15 13:05:14 mickey Exp $ */ +/* $OpenBSD: ad1848.c,v 1.32 2005/05/22 19:40:51 art Exp $ */ /* $NetBSD: ad1848.c,v 1.45 1998/01/30 02:02:38 augustss Exp $ */ /* @@ -1562,7 +1562,7 @@ ad1848_dma_output(addr, p, cc, intr, arg) #ifdef AUDIO_DEBUG if (ad1848debug > 0) - printf("ad1848_dma_output: cc=%d at %p 0x%p (0x%p)\n", cc, p, intr, arg); + printf("ad1848_dma_output: cc=%d at %p %p (%p)\n", cc, p, intr, arg); #endif sc->sc_locked = 1; sc->sc_intr = intr; diff --git a/sys/dev/tc/asc_tcds.c b/sys/dev/tc/asc_tcds.c index 02444f4a8f5..56ce7657135 100644 --- a/sys/dev/tc/asc_tcds.c +++ b/sys/dev/tc/asc_tcds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asc_tcds.c,v 1.3 2003/06/05 12:27:02 deraadt Exp $ */ +/* $OpenBSD: asc_tcds.c,v 1.4 2005/05/22 19:40:51 art Exp $ */ /* $NetBSD: asc_tcds.c,v 1.5 2001/11/15 09:48:19 lukem Exp $ */ /*- @@ -413,7 +413,7 @@ tcds_dma_intr(sc) if (dud & TCDS_DUD0_VALID11) dudmask |= TCDS_DUD_BYTE11; #endif - NCR_DMA(("dud0 at 0x%p dudmask 0x%x\n", + NCR_DMA(("dud0 at %p dudmask 0x%x\n", addr, dudmask)); *addr = (*addr & ~dudmask) | (dud & dudmask); } |