summaryrefslogtreecommitdiff
path: root/lib/igt_fb.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2019-03-12 14:53:32 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-03-13 17:26:49 +0100
commitc46051337b972f8b5a302afb6f603df06fea527d (patch)
tree762614007f7808c1ced32cfbb48c86dc5f015220 /lib/igt_fb.c
parentb25e06d6ddf2e42044cd9c93b613cbc7339a8c33 (diff)
lib/igt_fb: better format printing
Steal if from kms_plane.c and put it into igt_fb.h Also tiny bikeshed to remove the space, so it fits more tidily into the usual name1=value1, name2=value2 style printing. v2: Rebase v3: It better compile :-/ Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1) Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r--lib/igt_fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index e696c863..6a9a9341 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1146,8 +1146,10 @@ igt_create_fb_with_bo_size(int fd, int width, int height,
fb->size = bo_size;
- igt_debug("%s(width=%d, height=%d, format=0x%x, modifier=0x%"PRIx64", size=%"PRIu64")\n",
- __func__, width, height, format, modifier, bo_size);
+ igt_debug("%s(width=%d, height=%d, format=" IGT_FORMAT_FMT
+ ", modifier=0x%"PRIx64", size=%"PRIu64")\n",
+ __func__, width, height, IGT_FORMAT_ARGS(format), modifier,
+ bo_size);
create_bo_for_fb(fb);
igt_assert(fb->gem_handle > 0);