hotspot/src/os/windows/vm/os_windows.cpp
changeset 33766 3290cae587f9
parent 33198 b37ad9fbf681
child 34278 d0693c55b8a4
child 34305 e399e6b44631
equal deleted inserted replaced
33754:49614940dafc 33766:3290cae587f9
  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 }