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 error on some archs (e.g. i386).



details:   https://anonhg.NetBSD.org/src/rev/2778857e24a9
branches:  trunk
changeset: 345167:2778857e24a9
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 11 04:37:09 2016 +0000

description:
Fix compile error on some archs (e.g. i386).

diffstat:

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

diffs (29 lines):

diff -r 895a989ab60e -r 2778857e24a9 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Wed May 11 03:46:06 2016 +0000
+++ b/sys/dev/pci/if_wm.c       Wed May 11 04:37:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.396 2016/05/11 03:46:06 knakahara Exp $    */
+/*     $NetBSD: if_wm.c,v 1.397 2016/05/11 04:37:09 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.396 2016/05/11 03:46:06 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.397 2016/05/11 04:37:09 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -5173,8 +5173,8 @@
                        preg = pci_conf_read(sc->sc_pc, sc->sc_pcitag,
                            WM_PCI_DESCRING_STATUS);
                        reg = CSR_READ(sc, WMREG_TDLEN(0));
-                       printf("XXX RST: FLUSH = %lu, len = %u\n",
-                           preg & DESCRING_STATUS_FLUSH_REQ, reg);
+                       printf("XXX RST: FLUSH = %08x, len = %u\n",
+                           (uint32_t)(preg & DESCRING_STATUS_FLUSH_REQ), reg);
                        if (((preg & DESCRING_STATUS_FLUSH_REQ) != 0)
                            && (reg != 0)) {
                                /* TX */



Home | Main Index | Thread Index | Old Index