[Mesa-dev] [PATCH kmscube 1/2] common: use %llx to print modifier

Lucas Stach l.stach at pengutronix.de
Fri Apr 28 16:18:52 UTC 2017


Use long long format when printing the format modifier, as a simple
long is only 4 bytes on 32bit systems.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 drm-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drm-common.c b/drm-common.c
index 2f2c918596a4..fb4ec7f4389e 100644
--- a/drm-common.c
+++ b/drm-common.c
@@ -73,7 +73,7 @@ struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo)
 
 	if (modifiers[0]) {
 		flags = DRM_MODE_FB_MODIFIERS;
-		printf("Using modifier %lx\n", modifiers[0]);
+		printf("Using modifier %llx\n", modifiers[0]);
 	}
 
 	ret = drmModeAddFB2WithModifiers(drm_fd, width, height,
-- 
2.11.0



More information about the mesa-dev mailing list