Skip to contentSkip to conversation

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

PATCH New jenny.q.cao 1 participant 1 message May 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Replace PRIu64 to llu to fix -Wformat compile warning on android

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

---
 freedreno/msm/msm_ringbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
freedreno/msm/msm_ringbuffer.c +1 -1
index a87e1b9a26c0..f7ac7bcac4a2 100644
@@ -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);
 		}
 	}
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel