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

Submitted by Jenny Cao on May 17, 2018, 2:16 a.m.

Details

Message ID 1526523393-22852-1-git-send-email-jenny.q.cao@intel.com
State New
Headers show
Series "Replace PRIu64 to llu to fix -Wformat compile warning on android" ( rev: 1 ) in DRI devel

Not browsing as part of any series.

Commit Message

Jenny Cao May 17, 2018, 2:16 a.m.
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(-)

Patch hide | download patch | download mbox

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