From af962a704dc6bcc38e84af5a29a38daf2be5fbef Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Fri, 24 Mar 2023 14:29:48 +1000 Subject: [PATCH] Fix #1193, Change format of UtAssert_StringBufCompare --- ut_assert/src/utassert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ut_assert/src/utassert.c b/ut_assert/src/utassert.c index ca5abcb85..2810ae5d4 100644 --- a/ut_assert/src/utassert.c +++ b/ut_assert/src/utassert.c @@ -702,6 +702,6 @@ bool UtAssert_StringBufCompare(const char *String1, size_t String1Max, const cha } ScrubbedString2[FormatLen2] = 0; - return UtAssertEx(Result, UTASSERT_CASETYPE_FAILURE, File, Line, "String: \'%s\' == \'%s\'", ScrubbedString1, - ScrubbedString2); + return UtAssertEx(Result, UTASSERT_CASETYPE_FAILURE, File, Line, "String:\nReceived: \'%s\'\nExpected: \'%s\'", + ScrubbedString1, ScrubbedString2); }