# HG changeset patch # User Christian Haeubl # Date 1331253556 28800 # Node ID f2d2fb93daadf91e0e76da3e3e7a0f81bd6221b2 # Parent 227aa994f05816da19b92c67c1c3d966af47c2fa fixed debug/fastdebug warning message diff -r 227aa994f058 -r f2d2fb93daad src/share/vm/utilities/ostream.cpp --- a/src/share/vm/utilities/ostream.cpp Thu Mar 08 19:49:51 2012 +0100 +++ b/src/share/vm/utilities/ostream.cpp Thu Mar 08 16:39:16 2012 -0800 @@ -102,6 +102,7 @@ result_len = strlen(result); } else { DEBUG_ONLY(warning("increase O_BUFLEN in ostream.hpp -- output truncated");) + result = buffer; result_len = buflen - 1; buffer[result_len] = 0; @@ -615,7 +616,9 @@ // Print it as a java-style property list. // System properties don't generally contain newlines, so don't bother with unparsing. for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) { - xs->text()->print_cr("%s=%s", p->key(), p->value()); + xs->text()->print(p->key()); + xs->text()->print("="); + xs->text()->print_cr(p->value()); } xs->tail("properties"); }