[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211211002212.31408-1-rdunlap@infradead.org>
Date: Fri, 10 Dec 2021 16:22:12 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
Zack Rusin <zackr@...are.com>,
VMware Graphics <linux-graphics-maintainer@...are.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Martin Krastev <krastevm@...are.com>,
dri-devel@...ts.freedesktop.org
Subject: [PATCH -next] drm/vmwgfx: use %zu to print size_t
Prevent a build format warning by using the correct format specifier
to print size_t data.
Fixes this build warning:
../drivers/gpu/drm/vmwgfx/vmwgfx_gem.c:230:33: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
Fixes: 8afa13a0583f ("drm/vmwgfx: Implement DRIVER_GEM")
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Zack Rusin <zackr@...are.com>
Cc: VMware Graphics <linux-graphics-maintainer@...are.com>
Cc: David Airlie <airlied@...ux.ie>
Cc: Daniel Vetter <daniel@...ll.ch>
Cc: Martin Krastev <krastevm@...are.com>
Cc: dri-devel@...ts.freedesktop.org
---
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- next-2021-1210.orig/drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
+++ next-2021-1210/drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
@@ -227,7 +227,7 @@ static void vmw_bo_print_info(int id, st
break;
}
- seq_printf(m, "\t\t0x%08x: %12ld bytes %s, type = %s",
+ seq_printf(m, "\t\t0x%08x: %12zu bytes %s, type = %s",
id, bo->base.base.size, placement, type);
seq_printf(m, ", priority = %u, pin_count = %u, GEM refs = %d, TTM refs = %d",
bo->base.priority,
Powered by blists - more mailing lists