=== modified file 'storage/ndb/src/common/util/NdbOut.cpp' --- storage/ndb/src/common/util/NdbOut.cpp 2010-01-18 19:20:01 +0000 +++ storage/ndb/src/common/util/NdbOut.cpp 2010-08-13 07:26:45 +0000 @@ -128,9 +128,13 @@ char buf[1000]; va_start(ap, fmt); - if (fmt != 0) - BaseString::vsnprintf(buf, sizeof(buf)-1, fmt, ap); - *this << buf << endl; + *buf = '\0'; + if (fmt != 0) { + int len = BaseString::vsnprintf(buf, sizeof(buf)-1, fmt, ap); + buf[len] = '\n'; + buf[len+1] = '\0'; + } + *this << buf; va_end(ap); } @@ -138,12 +142,15 @@ void vndbout_c(const char * fmt, va_list ap){ char buf[1000]; - + + *buf = '\0'; if (fmt != 0) { - BaseString::vsnprintf(buf, sizeof(buf)-1, fmt, ap); + int len = BaseString::vsnprintf(buf, sizeof(buf)-1, fmt, ap); + buf[len] = '\n'; + buf[len+1] = '\0'; } - ndbout << buf << endl; + ndbout << buf; } extern "C"