--- old/src/hotspot/share/classfile/classLoader.cpp 2018-10-23 13:18:19.334269054 -0700 +++ new/src/hotspot/share/classfile/classLoader.cpp 2018-10-23 13:18:18.932231199 -0700 @@ -1472,13 +1472,13 @@ char* path = skip_uri_protocol(src); char* canonical_class_src_path = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, JVM_MAXPATHLEN); if (!get_canonical_path(path, canonical_class_src_path, JVM_MAXPATHLEN)) { - tty->print_cr("Bad pathname %s. CDS dump aborted.", path); + log_error(cds)("Bad pathname %s. CDS dump aborted.", path); vm_exit(1); } for (int i = 0; i < FileMapInfo::get_number_of_shared_paths(); i++) { SharedClassPathEntry* ent = FileMapInfo::shared_path(i); if (!get_canonical_path(ent->name(), canonical_path_table_entry, JVM_MAXPATHLEN)) { - tty->print_cr("Bad pathname %s. CDS dump aborted.", ent->name()); + log_error(cds)("Bad pathname %s. CDS dump aborted.", ent->name()); vm_exit(1); } // If the path (from the class stream source) is the same as the shared