From c46051337b972f8b5a302afb6f603df06fea527d Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 12 Mar 2019 14:53:32 +0100 Subject: lib/igt_fb: better format printing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä (v1) Signed-off-by: Daniel Vetter --- tests/kms_plane.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/kms_plane.c') diff --git a/tests/kms_plane.c b/tests/kms_plane.c index b8fdc925..9c330ae4 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -401,9 +401,6 @@ static void set_legacy_lut(data_t *data, enum pipe pipe, free(lut); } -#define IGT_FORMAT_FMT "%c%c%c%c (0x%08x)" -#define IGT_FORMAT_ARGS(f) ((f) >> 0) & 0xff, ((f) >> 8) & 0xff, \ - ((f) >> 16) & 0xff, ((f) >> 24) & 0xff, (f) static void test_format_plane_color(data_t *data, enum pipe pipe, igt_plane_t *plane, -- cgit v1.2.3