mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-11-04 20:17:30 +00:00
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 <tvrtko.ursulin@intel.com>
Date: Tue Mar 3 14:11:01 2015 +0000
tiling: Convert framebuffer helpers to use fb modifiers
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
b1177831ab
commit
dde047fe2c
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user