X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDebug.cxx;h=787c529cc98d5880043d853804f6f673891f0021;hb=f6204e4795251ff95c653e32e8cdca61d2c19880;hp=ffa95ed36fa67a413f54d4a6137146e02b2fe20f;hpb=4672e071f29ed17f7258b27e40d47642abfbb53f;p=gdcm.git diff --git a/src/gdcmDebug.cxx b/src/gdcmDebug.cxx index ffa95ed3..787c529c 100644 --- a/src/gdcmDebug.cxx +++ b/src/gdcmDebug.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDebug.cxx,v $ Language: C++ - Date: $Date: 2004/10/13 14:15:29 $ - Version: $Revision: 1.9 $ + Date: $Date: 2004/10/15 10:43:27 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -53,7 +53,7 @@ void Debug::Verbose(int level, const char * msg1, const char * msg2) { return ; } - std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl; + std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl << std::flush; } /** @@ -68,7 +68,7 @@ void Debug::Error(bool test, const char * msg1, const char * msg2) { return; } - std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl; + std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl << std::flush; Exit(1); } @@ -81,7 +81,8 @@ void Debug::Error(bool test, const char * msg1, const char * msg2) void Debug::Error(const char* msg1, const char* msg2, const char* msg3) { - std::cerr << "gdcm::" << msg1 << ' ' << msg2 << ' ' << msg3 << std::endl; + std::cerr << "gdcm::" << msg1 << ' ' << msg2 << ' ' << msg3 + << std::endl << std::flush; Exit(1); } @@ -101,7 +102,8 @@ void Debug::Assert(int level, bool test, const char * msg1, } if (!test) { - std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl; + std::cerr << "gdcm::" << msg1 << ' ' << msg2 + << std::endl << std::flush; } }