summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-04-16 16:24:14 +0000
committeroga <oga@openbsd.org>2010-04-16 16:24:14 +0000
commit8e89c9731362ae1d18ab82ef29e4efaaa85a2dc7 (patch)
tree1c44d9a46d903808fee821922cc428357a2bfc1b
parentMemory allocated with calloc() is initialized to zero, no need to do that (diff)
downloadwireguard-openbsd-8e89c9731362ae1d18ab82ef29e4efaaa85a2dc7.tar.xz
wireguard-openbsd-8e89c9731362ae1d18ab82ef29e4efaaa85a2dc7.zip
fix types in two error printfs. one of these also had a %d bug no vararg
for it, oops.
-rw-r--r--sys/dev/pci/drm/i915_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index 95c038ef0d1..5d1888635bc 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -1899,8 +1899,8 @@ i915_write_fence_reg(struct inteldrm_fence *reg)
if ((obj_priv->gtt_offset & ~I915_FENCE_START_MASK) ||
(obj_priv->gtt_offset & (obj->size - 1))) {
- DRM_ERROR("%s: object 0x%08x not 1M or size (0x%zx) aligned\n",
- __func__, obj_priv->gtt_offset, obj->size);
+ DRM_ERROR("object 0x%lx not 1M or size (0x%zx) aligned\n",
+ obj_priv->gtt_offset, obj->size);
return;
}
@@ -1940,8 +1940,8 @@ i830_write_fence_reg(struct inteldrm_fence *reg)
if ((obj_priv->gtt_offset & ~I830_FENCE_START_MASK) ||
(obj_priv->gtt_offset & (obj->size - 1))) {
- DRM_ERROR("object 0x%08x not 512K or size aligned\n",
- obj_priv->gtt_offset);
+ DRM_ERROR("object 0x%08x not 512K or size aligned 0x%lx\n",
+ obj_priv->gtt_offset, obj->size);
return;
}