Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/ifpga Keep up with pci_intr_handle_t type ch...



details:   https://anonhg.NetBSD.org/src/rev/69490ad496d5
branches:  trunk
changeset: 445556:69490ad496d5
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Nov 02 13:46:24 2018 +0000

description:
Keep up with pci_intr_handle_t type change in printf.

diffstat:

 sys/arch/evbarm/ifpga/ifpga_pci.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 7bf5c4addf92 -r 69490ad496d5 sys/arch/evbarm/ifpga/ifpga_pci.c
--- a/sys/arch/evbarm/ifpga/ifpga_pci.c Fri Nov 02 12:27:47 2018 +0000
+++ b/sys/arch/evbarm/ifpga/ifpga_pci.c Fri Nov 02 13:46:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifpga_pci.c,v 1.21 2018/10/23 08:38:18 jmcneill Exp $  */
+/*     $NetBSD: ifpga_pci.c,v 1.22 2018/11/02 13:46:24 maya Exp $      */
 
 /*
  * Copyright (c) 2001 ARM Ltd
@@ -64,7 +64,7 @@
 #define _ARM32_BUS_DMA_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ifpga_pci.c,v 1.21 2018/10/23 08:38:18 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ifpga_pci.c,v 1.22 2018/11/02 13:46:24 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -335,10 +335,10 @@
 ifpga_pci_intr_string(void *pcv, pci_intr_handle_t ih, char *buf, size_t len)
 {
 #ifdef PCI_DEBUG
-       printf("ifpga_pci_intr_string(pcv=%p, ih=0x%lx)\n", pcv, ih);
+       printf("ifpga_pci_intr_string(pcv=%p, ih=0x%" PRIu64 ")\n", pcv, ih);
 #endif
        if (ih == 0)
-               panic("ifpga_pci_intr_string: bogus handle 0x%lx", ih);
+               panic("ifpga_pci_intr_string: bogus handle 0x%" PRIu64, ih);
 
        snprintf(buf, len, "pciint%" PRIu64, ih - IFPGA_INTRNUM_PCIINT0);
        return buf;     
@@ -359,7 +359,7 @@
        void *intr;
 
 #ifdef PCI_DEBUG
-       printf("ifpga_pci_intr_establish(pcv=%p, ih=0x%lx, level=%d, "
+       printf("ifpga_pci_intr_establish(pcv=%p, ih=0x%" PRIu64 ", level=%d, "
            "func=%p, arg=%p)\n", pcv, ih, level, func, arg);
 #endif
 



Home | Main Index | Thread Index | Old Index