equal
deleted
inserted
replaced
1604 stringStream sst(buf, buflen); |
1604 stringStream sst(buf, buflen); |
1605 os::win32::print_windows_version(&sst); |
1605 os::win32::print_windows_version(&sst); |
1606 // chop off newline character |
1606 // chop off newline character |
1607 char* nl = strchr(buf, '\n'); |
1607 char* nl = strchr(buf, '\n'); |
1608 if (nl != NULL) *nl = '\0'; |
1608 if (nl != NULL) *nl = '\0'; |
|
1609 } |
|
1610 |
|
1611 int os::log_vsnprintf(char* buf, size_t len, const char* fmt, va_list args) { |
|
1612 int ret = vsnprintf(buf, len, fmt, args); |
|
1613 // Get the correct buffer size if buf is too small |
|
1614 if (ret < 0) { |
|
1615 return _vscprintf(fmt, args); |
|
1616 } |
|
1617 return ret; |
1609 } |
1618 } |
1610 |
1619 |
1611 void os::print_os_info_brief(outputStream* st) { |
1620 void os::print_os_info_brief(outputStream* st) { |
1612 os::print_os_info(st); |
1621 os::print_os_info(st); |
1613 } |
1622 } |