comparison src/share/vm/utilities/ostream.cpp @ 5066:f2d2fb93daad

fixed debug/fastdebug warning message
author Christian Haeubl <christian.haeubl@oracle.com>
date Thu, 08 Mar 2012 16:39:16 -0800
parents 11c26bfcf8c7
children 3d91d5d7b166
comparison
equal deleted inserted replaced
5065:227aa994f058 5066:f2d2fb93daad
100 } else if (vsnprintf(buffer, buflen, format, ap) >= 0) { 100 } else if (vsnprintf(buffer, buflen, format, ap) >= 0) {
101 result = buffer; 101 result = buffer;
102 result_len = strlen(result); 102 result_len = strlen(result);
103 } else { 103 } else {
104 DEBUG_ONLY(warning("increase O_BUFLEN in ostream.hpp -- output truncated");) 104 DEBUG_ONLY(warning("increase O_BUFLEN in ostream.hpp -- output truncated");)
105
105 result = buffer; 106 result = buffer;
106 result_len = buflen - 1; 107 result_len = buflen - 1;
107 buffer[result_len] = 0; 108 buffer[result_len] = 0;
108 } 109 }
109 if (add_cr) { 110 if (add_cr) {
613 if (Arguments::system_properties() != NULL) { 614 if (Arguments::system_properties() != NULL) {
614 xs->head("properties"); 615 xs->head("properties");
615 // Print it as a java-style property list. 616 // Print it as a java-style property list.
616 // System properties don't generally contain newlines, so don't bother with unparsing. 617 // System properties don't generally contain newlines, so don't bother with unparsing.
617 for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) { 618 for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
618 xs->text()->print_cr("%s=%s", p->key(), p->value()); 619 xs->text()->print(p->key());
620 xs->text()->print("=");
621 xs->text()->print_cr(p->value());
619 } 622 }
620 xs->tail("properties"); 623 xs->tail("properties");
621 } 624 }
622 xs->tail("vm_arguments"); 625 xs->tail("vm_arguments");
623 // tty output per se is grouped under the <tty>...</tty> element. 626 // tty output per se is grouped under the <tty>...</tty> element.