Skip to contentSkip to conversation

lib/fb: Use PRIx64 for uint64_t in format string

PATCH New Damien Lespiau 1 participant 1 message Mar 12, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/fb: Use PRIx64 for uint64_t in format string

Fix the following warning:

igt_fb.c: In function 'igt_create_fb_with_bo_size':
igt_fb.c:414:2: warning: format '%llx' expects argument of type
'long long unsigned int', but argument 9 has type 'uint64_t' [-Wformat=]

igt_debug("%s(width=%d, height=%d, format=0x%x [bpp=%d], tiling=%llx, size=%d\n",

introduced by commit:

commit e36091d1c7010e825897dc4487f9985ab353973b
Author: Tvrtko Ursulin <[email protected]>
Date: Tue Mar 3 14:11:01 2015 +0000

tiling: Convert framebuffer helpers to use fb modifiers

---
 lib/igt_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/igt_fb.c +1 -1
index 5c92fac..ce5a102 100644
@@ -411,7 +411,7 @@ igt_create_fb_with_bo_size(int fd, int width, int height,
 
 	bpp = igt_drm_format_to_bpp(format);
 
-	igt_debug("%s(width=%d, height=%d, format=0x%x [bpp=%d], tiling=%llx, size=%d\n",
+	igt_debug("%s(width=%d, height=%d, format=0x%x [bpp=%d], tiling=0x%"PRIx64", size=%d\n",
 		  __func__, width, height, format, bpp, tiling, bo_size);
 	do_or_die(create_bo_for_fb(fd, width, height, bpp, tiling, bo_size,
 				   &fb->gem_handle, &fb->size, &fb->stride));
Signature · 6 lines
1.8.3.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx