Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Use PRIxBUSADDR for bus_addr_t in debug printf.



details:   https://anonhg.NetBSD.org/src/rev/2a30f37709dd
branches:  trunk
changeset: 366303:2a30f37709dd
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sun May 22 08:59:34 2022 +0000

description:
Use PRIxBUSADDR for bus_addr_t in debug printf.

Kernel i386/ALL compiles again.

diffstat:

 sys/dev/ic/mfi.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b7498626bd50 -r 2a30f37709dd sys/dev/ic/mfi.c
--- a/sys/dev/ic/mfi.c  Sun May 22 08:58:31 2022 +0000
+++ b/sys/dev/ic/mfi.c  Sun May 22 08:59:34 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfi.c,v 1.77 2022/05/13 10:41:42 msaitoh Exp $ */
+/* $NetBSD: mfi.c,v 1.78 2022/05/22 08:59:34 hannken Exp $ */
 /* $OpenBSD: mfi.c,v 1.66 2006/11/28 23:59:45 dlg Exp $ */
 
 /*
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.77 2022/05/13 10:41:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.78 2022/05/22 08:59:34 hannken Exp $");
 
 #include "bio.h"
 
@@ -516,8 +516,8 @@
            BUS_DMA_NOWAIT) != 0)
                goto unmap;
 
-       DNPRINTF(MFI_D_MEM, "  kva: %p  dva: %p  map: %p\n",
-           mm->am_kva, (void *)mm->am_map->dm_segs[0].ds_addr, mm->am_map);
+       DNPRINTF(MFI_D_MEM, "  kva: %p  dva: %" PRIxBUSADDR "  map: %p\n",
+           mm->am_kva, mm->am_map->dm_segs[0].ds_addr, mm->am_map);
 
        memset(mm->am_kva, 0, size);
        return mm;



Home | Main Index | Thread Index | Old Index