From e53d941195f48f0d2c5afdec44f19eafc254d4d9 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Tue, 6 Aug 2019 12:46:41 -0600 Subject: test: make TEST_EQ and TEST_NE use %d as format When using TEST_EQ, the checkpatch.pl script complains about space around a ...., %d). When we are testing for equality, we are most likely be using a integer BRANCH=none BUG=none TEST=Uses of TEST_EQ work as expected when displaying errors Change-Id: Iedc69ee8b3e98fdcb2243f9dde445425f2714818 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1739584 Reviewed-by: Denis Brockus --- include/test_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/test_util.h b/include/test_util.h index 6134897fa1..78f25ee9b3 100644 --- a/include/test_util.h +++ b/include/test_util.h @@ -50,8 +50,8 @@ } \ } while (0) -#define TEST_EQ(a, b, fmt) TEST_OPERATOR(a, b, ==, fmt) -#define TEST_NE(a, b, fmt) TEST_OPERATOR(a, b, !=, fmt) +#define TEST_EQ(a, b) TEST_OPERATOR(a, b, ==, %d) +#define TEST_NE(a, b) TEST_OPERATOR(a, b, !=, %d) #define TEST_BITS_SET(a, bits) TEST_OPERATOR(a & bits, bits, ==, %u) #define TEST_BITS_CLEARED(a, bits) TEST_OPERATOR(a & bits, 0, ==, %u) -- cgit v1.2.1