From 1da9d3e65e889dcdd6b26248858541e2e3670c71 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Fri, 12 Jan 2024 14:27:04 +0100 Subject: [PATCH] change MemEq output --- CuTest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CuTest.c b/CuTest.c index c675482..7c3dc41 100644 --- a/CuTest.c +++ b/CuTest.c @@ -245,13 +245,12 @@ void CuAssertMemEquals_LineMsg(CuTest* tc, const char* file, int line, const cha char common[len * 2 + 1]; /* we will build the "common" mem string */ - printf("len=%d diffc = %lu\n", len, diffc); for (i = 0; i < diffc; ++i) sprintf(common + i * 2, "%02X", *(expected + i)); /* and final message */ sprintf(buf, - "expected <0x%s-%02X...> but was <0x%s-%02X...> (differ char %lu)\n", + "expected <0x%s[%02X]...> but was <0x%s[%02X]...> (differ at char %lu)\n", common, *(expected + i), common, *(actual + i), diffc);