Skip to content

Commit

Permalink
Use correct path in error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Sep 24, 2018
1 parent 311ff91 commit 54dfd7e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions runtime/jniinv/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2017 IBM Corp. and others
* Copyright (c) 1991, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -356,7 +356,7 @@ setupInvocationAPIMethods(struct j9cmdlineOptions* startupOptions)
printf("libjvmPath is %s\n", libjvmPath);

if (j9sl_open_shared_library(libjvmPath, &handle, J9PORT_SLOPEN_DECORATE)) {
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", J9_VM_DLL_NAME, j9error_last_error_message());
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", libjvmPath, j9error_last_error_message());
rc = FAIL;
goto cleanup;
}
Expand Down
3 changes: 1 addition & 2 deletions runtime/tests/shared/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*******************************************************************************
* Copyright (c) 1991, 2018 IBM Corp. and others
*
Expand Down Expand Up @@ -148,7 +147,7 @@ createJavaVM(struct j9cmdlineOptions* startupOptions, J9JavaVM** vm_, BOOLEAN us
strcat(libjvmPath, jvmLibName);

if (j9sl_open_shared_library(libjvmPath, &handle, J9PORT_SLOPEN_DECORATE)) {
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", J9_VM_DLL_NAME,
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", libjvmPath,
j9error_last_error_message());
rc = 1;
goto cleanup;
Expand Down
5 changes: 2 additions & 3 deletions runtime/tests/thread/thrstate/runtest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2017 IBM Corp. and others
* Copyright (c) 2008, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -611,12 +611,11 @@ signalProtectedMain(struct J9PortLibrary *portLibrary, void *arg)
strcat(libjvmPath, jvmLibName);

if (j9sl_open_shared_library(libjvmPath, &handle, J9PORT_SLOPEN_DECORATE)) {
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", J9_VM_DLL_NAME,
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", libjvmPath,
j9error_last_error_message());
return 1;
}


if (createVMArgs(PORTLIB, argc, argv, handle, JNI_VERSION_1_6, JNI_FALSE, &vm_args,
&CreateJavaVM)) {
return 1;
Expand Down
4 changes: 2 additions & 2 deletions runtime/tests/vm_lifecycle/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2017 IBM Corp. and others
* Copyright (c) 1991, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -90,7 +90,7 @@ setupInvocationAPIMethods(struct j9cmdlineOptions* startupOptions)
strcat(libjvmPath, jvmLibName);

if (j9sl_open_shared_library(libjvmPath, &handle, J9PORT_SLOPEN_DECORATE)) {
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", J9_VM_DLL_NAME, j9error_last_error_message());
j9tty_printf(PORTLIB, "Failed to open JVM DLL: %s (%s)\n", libjvmPath, j9error_last_error_message());
rc = FAIL;
goto cleanup;
}
Expand Down

0 comments on commit 54dfd7e

Please sign in to comment.