[Openmp-commits] [openmp] 7467dc1 - Fix apostrophes in assert error message (#69881)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 29 15:43:05 PDT 2024
Author: Sitnikov Sergey
Date: 2024-03-29T18:43:01-04:00
New Revision: 7467dc188a0c63b32bd3068fc98ae77f86285c0d
URL: https://github.com/llvm/llvm-project/commit/7467dc188a0c63b32bd3068fc98ae77f86285c0d
DIFF: https://github.com/llvm/llvm-project/commit/7467dc188a0c63b32bd3068fc98ae77f86285c0d.diff
LOG: Fix apostrophes in assert error message (#69881)
Added:
Modified:
openmp/libomptarget/DeviceRTL/src/Debug.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/DeviceRTL/src/Debug.cpp b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
index aecc33c0497a7c..31cd54e3de35ce 100644
--- a/openmp/libomptarget/DeviceRTL/src/Debug.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
@@ -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();
}
More information about the Openmp-commits
mailing list