From e21d9e4c1349c5d3098770ea51bcfedfa810af8a Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Mon, 14 Oct 2024 09:33:59 -0700 Subject: [PATCH] Fixing puts in preload code --- src/apex/apex_preload.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apex/apex_preload.cpp b/src/apex/apex_preload.cpp index e3a87f38..7715b3c0 100644 --- a/src/apex/apex_preload.cpp +++ b/src/apex/apex_preload.cpp @@ -61,9 +61,6 @@ int apex_preload_main(int argc, char** argv, char** envp) { fputs("!\n", stderr); return true; } - fputs("apex: executing ", stderr); - fputs(argv[0], stderr); - fputs("!\n", stderr); return false; }; if (validate_argv0("tclsh8.6")) { @@ -96,6 +93,9 @@ int apex_preload_main(int argc, char** argv, char** envp) { if (apex::apex_options::use_otf2() && apex::apex_options::use_mpi()) { ret = main_real(argc, argv, envp); } else { + fputs("apex: executing ", stderr); + fputs(argv[0], stderr); + fputs("!\n", stderr); apex::init("APEX Preload", 0, 1); const std::string timerName{__APEX_FUNCTION__}; auto t = apex::new_task(timerName);