Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci fix compile failure with IWM_DEBUG on i386.



details:   https://anonhg.NetBSD.org/src/rev/e289ed433099
branches:  trunk
changeset: 806340:e289ed433099
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Tue Feb 17 09:18:45 2015 +0000

description:
fix compile failure with IWM_DEBUG on i386.

diffstat:

 sys/dev/pci/if_iwm.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r e5edd265ffb7 -r e289ed433099 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Tue Feb 17 01:53:21 2015 +0000
+++ b/sys/dev/pci/if_iwm.c      Tue Feb 17 09:18:45 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwm.c,v 1.8 2015/02/16 13:22:19 nonaka Exp $        */
+/*     $NetBSD: if_iwm.c,v 1.9 2015/02/17 09:18:45 nonaka Exp $        */
 /*     OpenBSD: if_iwm.c,v 1.18 2015/02/11 01:12:42 brad Exp   */
 
 /*
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.8 2015/02/16 13:22:19 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.9 2015/02/17 09:18:45 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -1767,8 +1767,8 @@
                /* Set physical address of TX ring (256-byte aligned). */
                IWM_WRITE(sc, IWM_FH_MEM_CBBC_QUEUE(qid),
                    txq->desc_dma.paddr >> 8);
-               DPRINTF(("loading ring %d descriptors (%p) at %lx\n",
-                   qid, txq->desc, txq->desc_dma.paddr >> 8));
+               DPRINTF(("loading ring %d descriptors (%p) at %"PRIxMAX"\n",
+                   qid, txq->desc, (uintmax_t)(txq->desc_dma.paddr >> 8)));
        }
        iwm_nic_unlock(sc);
 
@@ -3589,7 +3589,7 @@
            | ((sizeof(cmd->hdr) + paylen) << 4));
        desc->num_tbs = 1;
 
-       DPRINTFN(8, ("iwm_send_cmd 0x%x size=%lu %s\n",
+       DPRINTFN(8, ("iwm_send_cmd 0x%x size=%zu %s\n",
            code, sizeof(cmd->hdr) + paylen, async ? " (async)" : ""));
 
        if (paylen > sizeof(cmd->data)) {



Home | Main Index | Thread Index | Old Index