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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    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@xxxxxxxxx>
---
 freedreno/msm/msm_ringbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux