Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2014 02:23:50 +0000 (UTC)
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273808 - head/sys/dev/safe
Message-ID:  <201410290223.s9T2NoKh026481@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmg
Date: Wed Oct 29 02:23:50 2014
New Revision: 273808
URL: https://svnweb.freebsd.org/changeset/base/273808

Log:
  make this compile on arm...  bus_size_t is not size_t, and it has
  different sizes on different arches...

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

Modified: head/sys/dev/safe/safe.c
==============================================================================
--- head/sys/dev/safe/safe.c	Wed Oct 29 01:54:37 2014	(r273807)
+++ head/sys/dev/safe/safe.c	Wed Oct 29 02:23:50 2014	(r273808)
@@ -1811,8 +1811,8 @@ safe_dma_malloc(
 			     BUS_DMA_NOWAIT, &dma->dma_map);
 	if (r != 0) {
 		device_printf(sc->sc_dev, "safe_dma_malloc: "
-			"bus_dmammem_alloc failed; size %zu, error %u\n",
-			size, r);
+			"bus_dmammem_alloc failed; size %ju, error %u\n",
+			(uintmax_t)size, r);
 		goto fail_1;
 	}
 



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