svn commit: r296862 - head/sys/dev/drm2/i915

Bjoern A. Zeeb bz at FreeBSD.org
Mon Mar 14 16:19:51 UTC 2016


Author: bz
Date: Mon Mar 14 16:19:50 2016
New Revision: 296862
URL: https://svnweb.freebsd.org/changeset/base/296862

Log:
  Fix the printf for PAE kernels where it'd be long long to unbreak
  the build.

Modified:
  head/sys/dev/drm2/i915/i915_gem_gtt.c

Modified: head/sys/dev/drm2/i915/i915_gem_gtt.c
==============================================================================
--- head/sys/dev/drm2/i915/i915_gem_gtt.c	Mon Mar 14 14:55:15 2016	(r296861)
+++ head/sys/dev/drm2/i915/i915_gem_gtt.c	Mon Mar 14 16:19:50 2016	(r296862)
@@ -565,9 +565,10 @@ void i915_gem_init_global_gtt(struct drm
 	i915_ggtt_clear_range(dev, start / PAGE_SIZE, (end-start) / PAGE_SIZE);
 
 	device_printf(dev->dev,
-	    "taking over the fictitious range 0x%lx-0x%lx\n",
-	    dev_priv->mm.gtt_base_addr + start,
-	    dev_priv->mm.gtt_base_addr + start + dev_priv->mm.mappable_gtt_total);
+	    "taking over the fictitious range 0x%jx-0x%jx\n",
+	    (uintmax_t)(dev_priv->mm.gtt_base_addr + start),
+	    (uintmax_t)(dev_priv->mm.gtt_base_addr + start +
+		dev_priv->mm.mappable_gtt_total));
 	vm_phys_fictitious_reg_range(dev_priv->mm.gtt_base_addr + start,
 	    dev_priv->mm.gtt_base_addr + start + dev_priv->mm.mappable_gtt_total,
 	    VM_MEMATTR_WRITE_COMBINING);


More information about the svn-src-all mailing list