From 09da87cf5c2ed6de059425437e46517da9883e7e Mon Sep 17 00:00:00 2001 From: Martin Doerr Date: Mon, 20 Jun 2022 08:34:06 +0000 Subject: [PATCH] 8288485: jni/nullCaller/NullCallerTest.java failing (ppc64) Reviewed-by: alanb --- test/jdk/jni/nullCaller/CallHelper.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/jdk/jni/nullCaller/CallHelper.hpp b/test/jdk/jni/nullCaller/CallHelper.hpp index f851cbb992a..f0a16ce59ac 100644 --- a/test/jdk/jni/nullCaller/CallHelper.hpp +++ b/test/jdk/jni/nullCaller/CallHelper.hpp @@ -24,12 +24,12 @@ #define __CallHelper_hpp__ #include +#include #include #undef NDEBUG #include #include #include -#include /* * basis of classes to provide a bunch of checking in native calls to java @@ -48,7 +48,7 @@ protected: void emitErrorMessage(const std::string& msg) { std::string nm = classname; std::replace(nm.begin(), nm.end(), '/', '.'); - std::cerr << "ERROR: " << nm << "::" << method << ", " << msg << std::endl; + ::fprintf(stderr, "ERROR: %s::%s, %s\n", nm.c_str(), method.c_str(), msg.c_str()); } // check the given object which is expected to be null @@ -202,7 +202,7 @@ public: }; void emitErrorMessageAndExit(const std::string& msg) { - std::cerr << "ERROR: " << msg << std::endl; + ::fprintf(stderr, "ERROR: %s\n", msg.c_str()); ::exit(-1); }