diff mbox

drm: Replace PRIu64 to llu to fix -Wformat compile warning on android

Message ID 1526532843-23042-1-git-send-email-jenny.q.cao@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

jenny.q.cao May 17, 2018, 4:54 a.m. UTC
replace PRIu64 to llu to fix -Wformat compile warning on android :
    format specifies type 'unsigned long' but the argument has type
    '__u64' (aka 'unsigned long long') [-Wformat]

    Tests: compilation with warning clean
    Signed-off-by: jenny cao <jenny.q.cao@intel.com>
---
 freedreno/msm/msm_ringbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c
index a87e1b9a26c0..f7ac7bcac4a2 100644
--- a/freedreno/msm/msm_ringbuffer.c
+++ b/freedreno/msm/msm_ringbuffer.c
@@ -385,7 +385,7 @@  static void dump_submit(struct msm_ringbuffer *msm_ring)
 		for (j = 0; j < cmd->nr_relocs; j++) {
 			struct drm_msm_gem_submit_reloc *r = &relocs[j];
 			ERROR_MSG("    reloc[%d]: submit_offset=%u, or=%08x, shift=%d, reloc_idx=%u"
-					", reloc_offset=%"PRIu64, j, r->submit_offset, r->or, r->shift,
+					", reloc_offset=%llu", j, r->submit_offset, r->or, r->shift,
 					r->reloc_idx, r->reloc_offset);
 		}
 	}