8186988: use log_warning() and log_error() instead of tty->print_cr for CDS warning and error messages

Reviewed-by: stuefe, iklam, dholmes
This commit is contained in:
Calvin Cheung 2019-09-12 09:59:19 -07:00
parent e9eaba3d53
commit e8ee2800f5
4 changed files with 8 additions and 7 deletions

View file

@ -459,7 +459,7 @@ void FileMapInfo::check_nonempty_dir_in_shared_path_table() {
if (e->is_dir()) {
const char* path = e->name();
if (!os::dir_is_empty(path)) {
tty->print_cr("Error: non-empty directory '%s'", path);
log_error(cds)("Error: non-empty directory '%s'", path);
has_nonempty_dir = true;
}
}