diff --git a/openmp/libomptarget/DeviceRTL/src/Debug.cpp b/openmp/libomptarget/DeviceRTL/src/Debug.cpp index aecc33c0497a7..31cd54e3de35c 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(); }