svn commit: r273808 - head/sys/dev/safe

John-Mark Gurney jmg at FreeBSD.org
Wed Oct 29 02:23:51 UTC 2014


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;
 	}
 


More information about the svn-src-all mailing list