< prev index next >
src/share/vm/utilities/ostream.cpp
Print this page
rev 8068 : 8077308: Fix warning: increase O_BUFLEN in ostream.hpp -- output truncated.
Summary: Don't use sprintf for output of very long strings.
Reviewed-by: kvn
*** 976,987 ****
}
if (Arguments::system_properties() != NULL) {
xs->head("properties");
// 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->tail("properties");
}
xs->tail("vm_arguments");
// tty output per se is grouped under the <tty>...</tty> element.
--- 976,990 ----
}
if (Arguments::system_properties() != NULL) {
xs->head("properties");
// Print it as a java-style property list.
// System properties don't generally contain newlines, so don't bother with unparsing.
+ outputStream *text = xs->text();
for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
! text->print_raw(p->key());
! text->put('=');
! text->print_raw_cr(p->value());
}
xs->tail("properties");
}
xs->tail("vm_arguments");
// tty output per se is grouped under the <tty>...</tty> element.
< prev index next >