Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/arc Use 64-bit printf formats for paddr_t's.



details:   https://anonhg.NetBSD.org/src/rev/09f71637517c
branches:  trunk
changeset: 499030:09f71637517c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Nov 09 06:05:40 2000 +0000

description:
Use 64-bit printf formats for paddr_t's.

diffstat:

 sys/arch/arc/arc/bus_space.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r fb3e571de0e5 -r 09f71637517c sys/arch/arc/arc/bus_space.c
--- a/sys/arch/arc/arc/bus_space.c      Thu Nov 09 06:02:40 2000 +0000
+++ b/sys/arch/arc/arc/bus_space.c      Thu Nov 09 06:05:40 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_space.c,v 1.2 2000/06/29 08:34:09 mrg Exp $        */
+/*     $NetBSD: bus_space.c,v 1.3 2000/11/09 06:05:40 thorpej Exp $    */
 /*     NetBSD: bus_machdep.c,v 1.1 2000/01/26 18:48:00 drochner Exp    */
 
 /*-
@@ -178,7 +178,8 @@
        paddr_t *pap;
 {
        if (bsh < MIPS_KSEG0_START) /* KUSEG */
-               panic("arc_bus_space_paddr(0x%lx): bad address", bsh);
+               panic("arc_bus_space_paddr(0x%qx): bad address",
+                   (unsigned long long) bsh);
        else if (bsh < MIPS_KSEG1_START) /* KSEG0 */
                *pap = MIPS_KSEG0_TO_PHYS(bsh);
        else if (bsh < MIPS_KSEG2_START) /* KSEG1 */
@@ -230,8 +231,8 @@
                /* bus_space_paddr() becomes unavailable after unmapping */
                err = bus_space_paddr(bst, bsh, &pa);
                if (err)
-                       panic("arc_bus_space_unmap: %s va 0x%lx: error %d\n",
-                           bst->bs_name, bsh, err);
+                       panic("arc_bus_space_unmap: %s va 0x%qx: error %d\n",
+                           bst->bs_name, (unsigned long long) bsh, err);
                addr = (bus_size_t)(pa - bst->bs_pbase) + bst->bs_start;
                extent_free(bst->bs_extent, addr, size,
                    EX_NOWAIT | malloc_safe);



Home | Main Index | Thread Index | Old Index