summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-30 17:02:43 -0700
committerTomeu Vizoso <[email protected]>2019-09-03 13:41:59 +0200
commitbcfcb7e624ac8cab5e99c096ec18c0d1bc6151d0 (patch)
tree3a050ca9143520e686ebb10685a983614aa081ec /src
parentd6d6d6327a9c0ca555cefefc4a4922bf75fbea41 (diff)
pan/decode: Use %zu instead of %d
Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/pandecode/decode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index aef69da1c48..b15b53e8cdf 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -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);
}