Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Fix warning errors for printing size_t ty...



details:   https://anonhg.NetBSD.org/src/rev/b11fa4267c76
branches:  trunk
changeset: 514873:b11fa4267c76
user:      rearnsha <rearnsha%NetBSD.org@localhost>
date:      Wed Sep 12 09:41:50 2001 +0000

description:
Fix warning errors for printing size_t types when compiling with
DEBUG_DMA (uses casts due to a.out and ELF having different base
types for size_t).

diffstat:

 sys/arch/arm/arm32/bus_dma.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r edc42d0f1b92 -r b11fa4267c76 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Wed Sep 12 08:25:17 2001 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Wed Sep 12 09:41:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.2 2001/09/10 21:19:35 chris Exp $        */
+/*     $NetBSD: bus_dma.c,v 1.3 2001/09/12 09:41:50 rearnsha Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -489,7 +489,8 @@
        pt_entry_t *ptep/*, pte*/;
 
 #ifdef DEBUG_DMA
-       printf("dmamem_map: t=%p segs=%p nsegs=%x size=%x flags=%x\n", t, segs, nsegs, size, flags);
+       printf("dmamem_map: t=%p segs=%p nsegs=%x size=%lx flags=%x\n", t,
+           segs, nsegs, (unsigned long)size, flags);
 #endif /* DEBUG_DMA */
 
        size = round_page(size);
@@ -552,7 +553,8 @@
 {
 
 #ifdef DEBUG_DMA
-       printf("dmamem_unmap: t=%p kva=%p size=%x\n", t, kva, size);
+       printf("dmamem_unmap: t=%p kva=%p size=%lx\n", t, kva,
+           (unsigned long)size);
 #endif /* DEBUG_DMA */
 #ifdef DIAGNOSTIC
        if ((u_long)kva & PGOFSET)



Home | Main Index | Thread Index | Old Index