<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 1:45 PM, Jingoo Han <span dir="ltr"><<a href="mailto:jg1.han@samsung.com" target="_blank">jg1.han@samsung.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Use %pad for dma_addr_t, because a dma_addr_t type can vary<br>
based on build options. So, it prevents possible build warnings<br>
in printks.<br>
<br>
Signed-off-by: Jingoo Han <<a href="mailto:jg1.han@samsung.com">jg1.han@samsung.com</a>><br></blockquote><div><br></div><div>Yay!</div><div><br></div><div>Reviewed-by: Daniel Kurtz <<a href="mailto:djkurtz@chromium.org">djkurtz@chromium.org</a>></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 2 +-<br>
drivers/gpu/drm/exynos/exynos_drm_vidi.c | 2 +-<br>
2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c<br>
index 59827cc..9cf71fa 100644<br>
--- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c<br>
+++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c<br>
@@ -263,7 +263,7 @@ struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,<br>
buffer->sgt = sgt;<br>
exynos_gem_obj->base.import_attach = attach;<br>
<br>
- DRM_DEBUG_PRIME("dma_addr = 0x%x, size = 0x%lx\n", buffer->dma_addr,<br>
+ DRM_DEBUG_PRIME("dma_addr = %pad, size = 0x%lx\n", &buffer->dma_addr,<br>
buffer->size);<br>
<br>
return &exynos_gem_obj->base;<br>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c<br>
index 3319289..e4689ef 100644<br>
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c<br>
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c<br>
@@ -221,7 +221,7 @@ static void vidi_win_commit(struct exynos_drm_manager *mgr, int zpos)<br>
<br>
win_data->enabled = true;<br>
<br>
- DRM_DEBUG_KMS("dma_addr = 0x%x\n", win_data->dma_addr);<br>
+ DRM_DEBUG_KMS("dma_addr = %pad\n", &win_data->dma_addr);<br>
<br>
if (ctx->vblank_on)<br>
schedule_work(&ctx->work);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
<br>
_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</font></span></blockquote></div><br></div></div>