Skip to content

Commit 50f365c

Browse files
author
Boris BREZILLON
committed
drm/vc4: Fix wrong printk format in vc4_bo_stats_debugfs()
vc4->purgeable.size and vc4->purgeable.purged_size are size_t fields and should be printed with a %zd specifier. Fixes: b9f1925 ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl") Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Gustavo Padovan <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7fb50b9 commit 50f365c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/vc4/vc4_bo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ int vc4_bo_stats_debugfs(struct seq_file *m, void *unused)
8888

8989
mutex_lock(&vc4->purgeable.lock);
9090
if (vc4->purgeable.num)
91-
seq_printf(m, "%30s: %6dkb BOs (%d)\n", "userspace BO cache",
91+
seq_printf(m, "%30s: %6zdkb BOs (%d)\n", "userspace BO cache",
9292
vc4->purgeable.size / 1024, vc4->purgeable.num);
9393

9494
if (vc4->purgeable.purged_num)
95-
seq_printf(m, "%30s: %6dkb BOs (%d)\n", "total purged BO",
95+
seq_printf(m, "%30s: %6zdkb BOs (%d)\n", "total purged BO",
9696
vc4->purgeable.purged_size / 1024,
9797
vc4->purgeable.purged_num);
9898
mutex_unlock(&vc4->purgeable.lock);

0 commit comments

Comments
 (0)