Skip to content

Commit

Permalink
Fix apostrophes in assert error message (#69881)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqendo committed Mar 29, 2024
1 parent b4693e0 commit 7467dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmp/libomptarget/DeviceRTL/src/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ void __assert_fail(const char *expr, const char *file, unsigned line,
void __assert_fail_internal(const char *expr, const char *msg, const char *file,
unsigned line, const char *function) {
if (msg) {
PRINTF("%s:%u: %s: Assertion %s (`%s') failed.\n", file, line, function,
PRINTF("%s:%u: %s: Assertion %s (`%s`) failed.\n", file, line, function,
msg, expr);
} else {
PRINTF("%s:%u: %s: Assertion `%s' failed.\n", file, line, function, expr);
PRINTF("%s:%u: %s: Assertion `%s` failed.\n", file, line, function, expr);
}
__builtin_trap();
}
Expand Down

0 comments on commit 7467dc1

Please sign in to comment.