< prev index next >

src/share/vm/utilities/ostream.cpp

Print this page
rev 9824 : [mq]: fixout

*** 1,7 **** /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 1131,1141 **** #endif void logStream::write(const char* s, size_t len) { if (len > 0 && s[len - 1] == '\n') { _current_line.write(s, len - 1); ! _log_func(_current_line.as_string()); _current_line.reset(); } else { _current_line.write(s, len); } update_position(s, len); --- 1131,1141 ---- #endif void logStream::write(const char* s, size_t len) { if (len > 0 && s[len - 1] == '\n') { _current_line.write(s, len - 1); ! _log_func("%s", _current_line.as_string()); _current_line.reset(); } else { _current_line.write(s, len); } update_position(s, len);
< prev index next >