[Openmp-commits] [openmp] f7655f3 - [OpenMP] Fix improper printf format specifier

via Openmp-commits openmp-commits at lists.llvm.org
Wed Jun 2 09:05:44 PDT 2021


Author: Peyton, Jonathan L
Date: 2021-06-02T11:04:48-05:00
New Revision: f7655f3df394d90a340dc09465fbb752bef4bae6

URL: https://github.com/llvm/llvm-project/commit/f7655f3df394d90a340dc09465fbb752bef4bae6
DIFF: https://github.com/llvm/llvm-project/commit/f7655f3df394d90a340dc09465fbb752bef4bae6.diff

LOG: [OpenMP] Fix improper printf format specifier

Added: 
    

Modified: 
    openmp/runtime/src/ompt-general.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/ompt-general.cpp b/openmp/runtime/src/ompt-general.cpp
index b0af1815b210..b2f244fc25dd 100644
--- a/openmp/runtime/src/ompt-general.cpp
+++ b/openmp/runtime/src/ompt-general.cpp
@@ -310,7 +310,7 @@ ompt_try_start_tool(unsigned int omp_version, const char *runtime_version) {
                                 fname);
         start_tool = (ompt_start_tool_t)GetProcAddress(h, "ompt_start_tool");
         if (!start_tool) {
-          OMPT_VERBOSE_INIT_CONTINUED_PRINT("Failed: Error %s\n",
+          OMPT_VERBOSE_INIT_CONTINUED_PRINT("Failed: Error %u\n",
                                             GetLastError());
         } else
 #else


        


More information about the Openmp-commits mailing list