8262500: HostName entry in VM.info should be a new line

Reviewed-by: stuefe, dcubed, dholmes
This commit is contained in:
Yasumasa Suenaga 2021-03-02 03:02:30 +00:00
parent 9f0f0c9870
commit c3eb80e18f

View File

@ -1700,9 +1700,9 @@ void os::print_os_info(outputStream* st) {
char buffer[1024]; char buffer[1024];
st->print("HostName: "); st->print("HostName: ");
if (get_host_name(buffer, sizeof(buffer))) { if (get_host_name(buffer, sizeof(buffer))) {
st->print("%s ", buffer); st->print_cr(buffer);
} else { } else {
st->print("N/A "); st->print_cr("N/A");
} }
#endif #endif
st->print_cr("OS:"); st->print_cr("OS:");