Replace PRIu64 to llu to fix -Wformat compile warning on android
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
Signed-off-by jenny cao <[email protected]>
--- freedreno/msm/msm_ringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
freedreno/msm/msm_ringbuffer.c +1 -1
@@ -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