pan/decode: Use %zu instead of %d
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 31 Aug 2019 00:02:43 +0000 (17:02 -0700)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 3 Sep 2019 11:41:59 +0000 (13:41 +0200)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/panfrost/pandecode/decode.c

index aef69da1c48172de2f8e15b49112ba1a1977da6e..b15b53e8cdff6f482a3f55cab30f3f2072b33d4a 100644 (file)
@@ -147,8 +147,8 @@ pandecode_validate_buffer(mali_ptr addr, size_t sz)
 
         if (total > bo->length) {
                 pandecode_msg("XXX: buffer overrun. "
-                                "Chunk of size %d at offset %d in buffer of size %d. "
-                                "Overrun by %d bytes. \n",
+                                "Chunk of size %zu at offset %d in buffer of size %zu. "
+                                "Overrun by %zu bytes. \n",
                                 sz, offset, bo->length, total - bo->length);
                 return;
         }
@@ -571,7 +571,7 @@ pandecode_midgard_tiler_descriptor(
                 /* When tiling is enabled, the heap should be a tight fit */
                 unsigned heap_offset = t->heap_start - heap->gpu_va;
                 if ((heap_offset + heap_size) != heap->length) {
-                        pandecode_msg("XXX: heap size %d (expected %d)\n",
+                        pandecode_msg("XXX: heap size %u (expected %zu)\n",
                                         heap_size, heap->length - heap_offset);
                 }