[Openmp-commits] [PATCH] D141889: [OpenMP] Fix the wrong format string used in `__kmpc_error`

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 16 20:55:39 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4e27097c5bfb: [OpenMP] Fix the wrong format string used in `__kmpc_error` (authored by tianshilei1992).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141889/new/

https://reviews.llvm.org/D141889

Files:
  openmp/runtime/src/kmp_csupport.cpp


Index: openmp/runtime/src/kmp_csupport.cpp
===================================================================
--- openmp/runtime/src/kmp_csupport.cpp
+++ openmp/runtime/src/kmp_csupport.cpp
@@ -4453,7 +4453,7 @@
   if (loc && loc->psource) {
     kmp_str_loc_t str_loc = __kmp_str_loc_init(loc->psource, false);
     src_loc =
-        __kmp_str_format("%s:%s:%s", str_loc.file, str_loc.line, str_loc.col);
+        __kmp_str_format("%s:%d:%d", str_loc.file, str_loc.line, str_loc.col);
     __kmp_str_loc_free(&str_loc);
   } else {
     src_loc = __kmp_str_format("unknown");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141889.489692.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230117/ddb68bb1/attachment.bin>


More information about the Openmp-commits mailing list