# HG changeset patch # User jiefu # Date 1568451220 -28800 # Sat Sep 14 16:53:40 2019 +0800 # Node ID de54e06277a82f6d619a5c50dde1aeb48140bab6 # Parent 3054503bad7d84214fc735acc651eb1c3c77f037 8231024: Improve the debug info when the output is truncated Reviewed-by: diff --git a/src/hotspot/share/utilities/ostream.cpp b/src/hotspot/share/utilities/ostream.cpp --- a/src/hotspot/share/utilities/ostream.cpp +++ b/src/hotspot/share/utilities/ostream.cpp @@ -105,7 +105,7 @@ 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; } }