Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src 0x%p --> %p for non-external codes.



details:   https://anonhg.NetBSD.org/src/rev/2f1f843e1b7c
branches:  trunk
changeset: 849243:2f1f843e1b7c
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Feb 24 12:20:29 2020 +0000

description:
0x%p --> %p for non-external codes.

diffstat:

 lib/libcurses/fileio.c                   |   6 +++---
 lib/libcurses/refresh.c                  |   6 +++---
 sys/arch/amiga/dev/if_bah_zbus.c         |   6 +++---
 sys/arch/arm/footbridge/footbridge_pci.c |   6 +++---
 sys/arch/emips/ebus/ace_ebus.c           |   6 +++---
 sys/arch/rs6000/stand/boot/boot.c        |   4 ++--
 sys/arch/xen/x86/cpu.c                   |   6 +++---
 sys/dev/isa/mcd.c                        |  10 +++++-----
 sys/dev/pci/if_ena.c                     |   4 ++--
 sys/dev/pci/if_sk.c                      |   6 +++---
 sys/dev/pci/igma/igmafb.c                |   6 +++---
 sys/net80211/ieee80211_node.c            |   6 +++---
 sys/uvm/pmap/pmap_segtab.c               |   8 ++++----
 tests/lib/libc/sys/t_mincore.c           |   6 +++---
 14 files changed, 43 insertions(+), 43 deletions(-)

diffs (truncated from 385 to 300 lines):

diff -r 7c86978a3eab -r 2f1f843e1b7c lib/libcurses/fileio.c
--- a/lib/libcurses/fileio.c    Mon Feb 24 12:08:08 2020 +0000
+++ b/lib/libcurses/fileio.c    Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fileio.c,v 1.6 2018/10/02 17:35:44 roy Exp $   */
+/*     $NetBSD: fileio.c,v 1.7 2020/02/24 12:20:29 rin Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fileio.c,v 1.6 2018/10/02 17:35:44 roy Exp $");
+__RCSID("$NetBSD: fileio.c,v 1.7 2020/02/24 12:20:29 rin Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -236,7 +236,7 @@
                __touchline(win, y, 0, (int) win->maxx - 1);
        }
 #ifdef DEBUG
-       __CTRACE(__CTRACE_FILEIO, "getwin: win = 0x%p\n", win);
+       __CTRACE(__CTRACE_FILEIO, "getwin: win = %p\n", win);
 #endif
        return win;
 
diff -r 7c86978a3eab -r 2f1f843e1b7c lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Mon Feb 24 12:08:08 2020 +0000
+++ b/lib/libcurses/refresh.c   Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.111 2019/06/09 07:40:14 blymn Exp $      */
+/*     $NetBSD: refresh.c,v 1.112 2020/02/24 12:20:29 rin Exp $        */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c  8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.111 2019/06/09 07:40:14 blymn Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.112 2020/02/24 12:20:29 rin Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -1436,7 +1436,7 @@
 {
 
 #ifdef DEBUG
-       __CTRACE(__CTRACE_REFRESH, "domvcur: (%d,%d)=>(%d,%d) win 0x%p\n",
+       __CTRACE(__CTRACE_REFRESH, "domvcur: (%d,%d)=>(%d,%d) win %p\n",
            oy, ox, ny, nx, win );
 #endif /* DEBUG */
 
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/arch/amiga/dev/if_bah_zbus.c
--- a/sys/arch/amiga/dev/if_bah_zbus.c  Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/arch/amiga/dev/if_bah_zbus.c  Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bah_zbus.c,v 1.17 2017/10/23 09:21:40 msaitoh Exp $ */
+/*     $NetBSD: if_bah_zbus.c,v 1.18 2020/02/24 12:20:29 rin Exp $ */
 
 /*-
  * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bah_zbus.c,v 1.17 2017/10/23 09:21:40 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bah_zbus.c,v 1.18 2020/02/24 12:20:29 rin Exp $");
 
 /*
  * Driver frontend for the Commodore Busines Machines and the
@@ -102,7 +102,7 @@
 
        sc->sc_dev = self;
 #if (defined(BAH_DEBUG) && (BAH_DEBUG > 2))
-       printf("\n%s: attach(0x%p, 0x%p, 0x%p)\n",
+       printf("\n%s: attach(%p, %p, %p)\n",
            device_xname(self), parent, self, aux);
 #endif
        bsc->sc_bst.base = (bus_addr_t)zap->va;
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/arch/arm/footbridge/footbridge_pci.c
--- a/sys/arch/arm/footbridge/footbridge_pci.c  Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/arch/arm/footbridge/footbridge_pci.c  Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_pci.c,v 1.31 2018/11/17 01:45:25 rjs Exp $  */
+/*     $NetBSD: footbridge_pci.c,v 1.32 2020/02/24 12:20:29 rin Exp $  */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: footbridge_pci.c,v 1.31 2018/11/17 01:45:25 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: footbridge_pci.c,v 1.32 2020/02/24 12:20:29 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -370,7 +370,7 @@
 footbridge_pci_intr_disestablish(void *pcv, void *cookie)
 {
 #ifdef PCI_DEBUG
-       printf("footbridge_pci_intr_disestablish(pcv=%p, cookie=0x%p)\n",
+       printf("footbridge_pci_intr_disestablish(pcv=%p, cookie=%p)\n",
            pcv, cookie);
 #endif
        /* XXXX Need to free the string */
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/arch/emips/ebus/ace_ebus.c
--- a/sys/arch/emips/ebus/ace_ebus.c    Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/arch/emips/ebus/ace_ebus.c    Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ace_ebus.c,v 1.22 2019/12/14 02:58:19 tsutsui Exp $    */
+/*     $NetBSD: ace_ebus.c,v 1.23 2020/02/24 12:20:29 rin Exp $        */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ace_ebus.c,v 1.22 2019/12/14 02:58:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ace_ebus.c,v 1.23 2020/02/24 12:20:29 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2393,7 +2393,7 @@
        }
 #else  /* ACE_DUMP_NOT_TRUSTED */
        /* Let's just talk about this first... */
-       device_printf(ace->sc_dev, ": dump addr 0x%p, size %zu blkno %llx\n",
+       device_printf(ace->sc_dev, ": dump addr %p, size %zu blkno %llx\n",
            va, size, blkno);
        DELAY(500 * 1000);      /* half a second */
        err = 0;
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/arch/rs6000/stand/boot/boot.c
--- a/sys/arch/rs6000/stand/boot/boot.c Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/arch/rs6000/stand/boot/boot.c Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.5 2011/01/22 19:19:22 joerg Exp $   */
+/*     $NetBSD: boot.c,v 1.6 2020/02/24 12:20:29 rin Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -169,7 +169,7 @@
        printf("\n");
        //setled(0x31100000); /* we have the console */
 
-       printf("IPLCB ptr = 0x%p\n", iplcb_p);
+       printf("IPLCB ptr = %p\n", iplcb_p);
 
        infop = (struct ipl_info *)((char *)iplcb_p + dirp->iplinfo_off);
        printf("Machine model = 0x%x\n", infop->model);
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/arch/xen/x86/cpu.c
--- a/sys/arch/xen/x86/cpu.c    Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/arch/xen/x86/cpu.c    Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.132 2020/01/13 20:15:01 bouyer Exp $ */
+/*     $NetBSD: cpu.c,v 1.133 2020/02/24 12:20:29 rin Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.132 2020/01/13 20:15:01 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.133 2020/02/24 12:20:29 rin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -505,7 +505,7 @@
                struct pcb *pcb = lwp_getpcb(l);
 
                aprint_verbose_dev(self,
-                   "idle lwp at %p, idle sp at 0x%p\n",
+                   "idle lwp at %p, idle sp at %p\n",
                    l,
 #ifdef i386
                    (void *)pcb->pcb_esp
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/dev/isa/mcd.c
--- a/sys/dev/isa/mcd.c Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/dev/isa/mcd.c Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcd.c,v 1.119 2019/11/12 13:17:44 msaitoh Exp $        */
+/*     $NetBSD: mcd.c,v 1.120 2020/02/24 12:20:29 rin Exp $    */
 
 /*
  * Copyright (c) 1993, 1994, 1995 Charles M. Hannum.  All rights reserved.
@@ -56,7 +56,7 @@
 /*static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mcd.c,v 1.119 2019/11/12 13:17:44 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcd.c,v 1.120 2020/02/24 12:20:29 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -453,7 +453,7 @@
        lp = sc->sc_dk.dk_label;
 
        /* Test validity. */
-       MCD_TRACE("strategy: buf=0x%p blkno=%d bcount=%d\n", bp,
+       MCD_TRACE("strategy: buf=%p blkno=%d bcount=%d\n", bp,
            (int) bp->b_blkno, bp->b_bcount);
        if (bp->b_blkno < 0 ||
            (bp->b_bcount % sc->blksize) != 0) {
@@ -523,7 +523,7 @@
        }
 
        /* Block found to process. */
-       MCD_TRACE("start: found block bp=0x%p\n", bp);
+       MCD_TRACE("start: found block bp=%p\n", bp);
        splx(s);
 
        /* Changed media? */
@@ -1214,7 +1214,7 @@
                sc->lastmode = mbx->mode;
 
        firstblock:
-               MCD_TRACE("doread: read blkno=%d for bp=0x%p\n",
+               MCD_TRACE("doread: read blkno=%d for bp=%p\n",
                    (int) mbx->blkno, bp);
 
                /* Build parameter block. */
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/dev/pci/if_ena.c
--- a/sys/dev/pci/if_ena.c      Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/dev/pci/if_ena.c      Mon Feb 24 12:20:29 2020 +0000
@@ -31,7 +31,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/sys/dev/ena/ena.c 333456 2018-05-10 09:37:54Z mw $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.22 2020/02/07 00:04:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.23 2020/02/24 12:20:30 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1561,7 +1561,7 @@
        ena_rx_hash_mbuf(rx_ring, ena_rx_ctx, mbuf);
 #endif
 
-       ena_trace(ENA_DBG | ENA_RXPTH, "rx mbuf 0x%p, flags=0x%x, len: %d",
+       ena_trace(ENA_DBG | ENA_RXPTH, "rx mbuf %p, flags=0x%x, len: %d",
            mbuf, mbuf->m_flags, mbuf->m_pkthdr.len);
 
        /* DMA address is not needed anymore, unmap it */
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/dev/pci/if_sk.c
--- a/sys/dev/pci/if_sk.c       Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/dev/pci/if_sk.c       Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_sk.c,v 1.104 2020/01/30 06:03:34 thorpej Exp $      */
+/*     $NetBSD: if_sk.c,v 1.105 2020/02/24 12:20:30 rin Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -115,7 +115,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.104 2020/01/30 06:03:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.105 2020/02/24 12:20:30 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -864,7 +864,7 @@
 
        state = 4;
        sc_if->sk_cdata.sk_jumbo_buf = (void *)kva;
-       DPRINTFN(1,("sk_jumbo_buf = 0x%p\n", sc_if->sk_cdata.sk_jumbo_buf));
+       DPRINTFN(1,("sk_jumbo_buf = %p\n", sc_if->sk_cdata.sk_jumbo_buf));
 
        LIST_INIT(&sc_if->sk_jfree_listhead);
        LIST_INIT(&sc_if->sk_jinuse_listhead);
diff -r 7c86978a3eab -r 2f1f843e1b7c sys/dev/pci/igma/igmafb.c
--- a/sys/dev/pci/igma/igmafb.c Mon Feb 24 12:08:08 2020 +0000
+++ b/sys/dev/pci/igma/igmafb.c Mon Feb 24 12:20:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: igmafb.c,v 1.1 2014/01/21 14:52:07 mlelstv Exp $       */
+/*     $NetBSD: igmafb.c,v 1.2 2020/02/24 12:20:30 rin Exp $   */
 
 /*
  * Copyright (c) 2012 Michael van Elst
@@ -21,7 +21,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igmafb.c,v 1.1 2014/01/21 14:52:07 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igmafb.c,v 1.2 2020/02/24 12:20:30 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -144,7 +144,7 @@
        aprint_normal("%s: %d x %d, %d bit, stride %d\n", device_xname(self),
                sc->sc_width, sc->sc_height, sc->sc_depth, sc->sc_stride);
 
-       aprint_normal("%s: %d MB video memory at 0x%p\n", device_xname(self),
+       aprint_normal("%s: %d MB video memory at %p\n", device_xname(self),
                (int)sc->sc_fbsize >> 20, (void *)sc->sc_chip.gmb);
 
        sc->sc_vga_save = kmem_alloc(256*1024, KM_SLEEP);



Home | Main Index | Thread Index | Old Index