Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax Fix debug (make it compile)



details:   https://anonhg.NetBSD.org/src/rev/041568ad1340
branches:  trunk
changeset: 824008:041568ad1340
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 18 16:34:56 2017 +0000

description:
Fix debug (make it compile)

diffstat:

 sys/arch/pmax/pmax/bus.c     |  16 ++++++++--------
 sys/arch/pmax/pmax/bus_dma.c |  16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

diffs (88 lines):

diff -r f276bcbb3da4 -r 041568ad1340 sys/arch/pmax/pmax/bus.c
--- a/sys/arch/pmax/pmax/bus.c  Thu May 18 16:33:57 2017 +0000
+++ b/sys/arch/pmax/pmax/bus.c  Thu May 18 16:34:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.c,v 1.1 2016/11/16 19:37:06 macallan Exp $ */
+/*     $NetBSD: bus.c,v 1.2 2017/05/18 16:34:56 christos Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.1 2016/11/16 19:37:06 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.2 2017/05/18 16:34:56 christos Exp $");
 
 #include "opt_cputype.h"
 
@@ -182,9 +182,9 @@
                addr = map->dm_segs[i].ds_addr;
 
 #ifdef BUS_DMA_DEBUG
-               printf("bus_dmamap_sync_r3k: flushing segment %d "
-                   "(0x%lx..0x%lx) ...", i, addr + offset,
-                   addr + offset + minlen - 1);
+               printf("%s: flushing segment %d (%#jx..%#jx) ...", __func__, i,
+                   (intmax_t)addr + offset,
+                   (intmax_t)addr + offset + minlen - 1);
 #endif
                mips_dcache_inv_range(
                    MIPS_PHYS_TO_KSEG0(addr + offset), minlen);
@@ -294,9 +294,9 @@
                addr = map->dm_segs[i]._ds_vaddr;
 
 #ifdef BUS_DMA_DEBUG
-               printf("bus_dmamap_sync: flushing segment %d "
-                   "(0x%lx..0x%lx) ...", i, addr + offset,
-                   addr + offset + minlen - 1);
+               printf("%s: flushing segment %d (%#jx..%#jx) ...",
+                   __func__, i, (intmax_t)addr + offset,
+                   (intmax_t)ddr + offset + minlen - 1);
 #endif
 
                /*
diff -r f276bcbb3da4 -r 041568ad1340 sys/arch/pmax/pmax/bus_dma.c
--- a/sys/arch/pmax/pmax/bus_dma.c      Thu May 18 16:33:57 2017 +0000
+++ b/sys/arch/pmax/pmax/bus_dma.c      Thu May 18 16:34:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.58 2015/06/11 08:22:09 matt Exp $        */
+/*     $NetBSD: bus_dma.c,v 1.59 2017/05/18 16:34:56 christos Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.58 2015/06/11 08:22:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.59 2017/05/18 16:34:56 christos Exp $");
 
 #include "opt_cputype.h"
 
@@ -493,9 +493,9 @@
                addr = map->dm_segs[i].ds_addr;
 
 #ifdef BUS_DMA_DEBUG
-               printf("bus_dmamap_sync_r3k: flushing segment %d "
-                   "(0x%lx..0x%lx) ...", i, addr + offset,
-                   addr + offset + minlen - 1);
+               printf("%s: flushing segment %d (%#jx..%#jx) ...", __func__,
+                   i, (intmax_t)addr + offset,
+                   (intmax_t)addr + offset + minlen - 1);
 #endif
                mips_dcache_inv_range(
                    MIPS_PHYS_TO_KSEG0(addr + offset), minlen);
@@ -604,9 +604,9 @@
                addr = map->dm_segs[i]._ds_vaddr;
 
 #ifdef BUS_DMA_DEBUG
-               printf("bus_dmamap_sync: flushing segment %d "
-                   "(0x%lx..0x%lx) ...", i, addr + offset,
-                   addr + offset + minlen - 1);
+               printf("%s: flushing segment %d (%#jx..%#jx) ...", __func__,
+                   i, (intmax_t)addr + offset,
+                   (intmax_t)addr + offset + minlen - 1);
 #endif
 
                /*



Home | Main Index | Thread Index | Old Index