changeset 5066:f2d2fb93daad

fixed debug/fastdebug warning message
author Christian Haeubl <christian.haeubl@oracle.com>
date Thu, 08 Mar 2012 16:39:16 -0800
parents 227aa994f058
children bb290d53a338
files src/share/vm/utilities/ostream.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");
     }