< prev index next >

src/hotspot/share/utilities/ostream.cpp

Print this page
rev 56268 : 8231024: Improve the debug info when the output is truncated
Reviewed-by:

@@ -103,11 +103,11 @@
     assert(written >= 0, "vsnprintf encoding error");
     result = buffer;
     if ((size_t)written < buflen) {
       result_len = written;
     } else {
-      DEBUG_ONLY(warning("increase O_BUFLEN in ostream.hpp -- output truncated");)
+      DEBUG_ONLY(warning("increase O_BUFLEN in ostream.hpp: at least %d is required -- output truncated", written + 1);)
       result_len = buflen - 1;
     }
   }
   if (add_cr) {
     if (result != buffer) {
< prev index next >