Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2013 20:35:13 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256341 - head/sys/dev/bxe
Message-ID:  <201310112035.r9BKZD9o098166@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Oct 11 20:35:12 2013
New Revision: 256341
URL: http://svnweb.freebsd.org/changeset/base/256341

Log:
  In sys/dev/bxe/bxe.c, print bus_addr_t values using %#jx, to fix several
  gcc warnings for PAE kernels.
  
  Approved by:	re (glebius)
  Reviewed by:	davidch, edavis

Modified:
  head/sys/dev/bxe/bxe.c

Modified: head/sys/dev/bxe/bxe.c
==============================================================================
--- head/sys/dev/bxe/bxe.c	Fri Oct 11 20:28:30 2013	(r256340)
+++ head/sys/dev/bxe/bxe.c	Fri Oct 11 20:35:12 2013	(r256341)
@@ -2532,9 +2532,9 @@ bxe_sp_post(struct bxe_softc *sc,
         atomic_subtract_acq_long(&sc->cq_spq_left, 1);
     }
 
-    BLOGD(sc, DBG_SP, "SPQE -> %p\n", (void *)sc->spq_dma.paddr);
-    BLOGD(sc, DBG_SP, "FUNC_RDATA -> %p / %p\n",
-          BXE_SP(sc, func_rdata), (void *)BXE_SP_MAPPING(sc, func_rdata));
+    BLOGD(sc, DBG_SP, "SPQE -> %#jx\n", (uintmax_t)sc->spq_dma.paddr);
+    BLOGD(sc, DBG_SP, "FUNC_RDATA -> %p / %#jx\n",
+          BXE_SP(sc, func_rdata), (uintmax_t)BXE_SP_MAPPING(sc, func_rdata));
     BLOGD(sc, DBG_SP,
           "SPQE[%x] (%x:%x) (cmd, common?) (%d,%d) hw_cid %x data (%x:%x) type(0x%x) left (CQ, EQ) (%lx,%lx)\n",
           sc->spq_prod_idx,
@@ -6923,11 +6923,11 @@ bxe_alloc_fw_stats_mem(struct bxe_softc 
     sc->fw_stats_data_mapping = (sc->fw_stats_dma.paddr +
                                  sc->fw_stats_req_size);
 
-    BLOGD(sc, DBG_LOAD, "statistics request base address set to %p\n",
-          (void *)sc->fw_stats_req_mapping);
+    BLOGD(sc, DBG_LOAD, "statistics request base address set to %#jx\n",
+          (uintmax_t)sc->fw_stats_req_mapping);
 
-    BLOGD(sc, DBG_LOAD, "statistics data base address set to %p\n",
-          (void *)sc->fw_stats_data_mapping);
+    BLOGD(sc, DBG_LOAD, "statistics data base address set to %#jx\n",
+          (uintmax_t)sc->fw_stats_data_mapping);
 
     return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310112035.r9BKZD9o098166>