Skip to content

Commit

Permalink
Fix nasa#1193, Change format of UtAssert_StringBufCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Mar 24, 2023
1 parent 88d4b3b commit af962a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ut_assert/src/utassert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit af962a7

Please sign in to comment.