summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-29 17:30:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-29 19:55:30 +0100
commitd28b9d27bf6c1c5e0dae591985442a25bbecab86 (patch)
tree8734832fdd1b64a9ca42bab6118e007db95b7b5a
parentfbfa754e8dce1553e024310eb7b7ed9469ed238b (diff)
downloadintel-gpu-tools-d28b9d27bf6c1c5e0dae591985442a25bbecab86.tar.gz
intel-gpu-tools-d28b9d27bf6c1c5e0dae591985442a25bbecab86.tar.bz2
intel-gpu-tools-d28b9d27bf6c1c5e0dae591985442a25bbecab86.zip
igt: Tweak the igt_assert_cmpint macro
Minor tweak to embed the constant format string rather than passing it to the vararg printf. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--lib/igt_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index 3b9aa305..b4eb724f 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -281,7 +281,7 @@ void igt_exit(void) __attribute__((noreturn));
if (__n1 cmp __n2) ; else \
__igt_fail_assert(99, __FILE__, __LINE__, __func__, \
#n1 " " #cmp " " #n2, \
- "error: %d %s %d\n", __n1, #ncmp, __n2); \
+ "error: %d " #ncmp " %d\n", __n1, __n2); \
} while (0)
#define igt_assert_cmpuint(n1, cmp, ncmp, n2) \
@@ -290,7 +290,7 @@ void igt_exit(void) __attribute__((noreturn));
if (__n1 cmp __n2) ; else \
__igt_fail_assert(99, __FILE__, __LINE__, __func__, \
#n1 " " #cmp " " #n2, \
- "error: %#x %s %#x\n", __n1, #ncmp, __n2); \
+ "error: %#x " #ncmp " %#x\n", __n1, __n2); \
} while (0)
/**