X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDebug.cxx;h=787c529cc98d5880043d853804f6f673891f0021;hb=1481a8c42f220e3ee882275bcf0b8cb1efd84cc5;hp=a2e8f3d3ebc4140b8fd80706f0f25eabdcf789f0;hpb=1d69b92978803204089d270599133917d944c651;p=gdcm.git diff --git a/src/gdcmDebug.cxx b/src/gdcmDebug.cxx index a2e8f3d3..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/12 04:35:44 $ - Version: $Revision: 1.8 $ + 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 << 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 << 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 << 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 << msg1 << ' ' << msg2 << std::endl; + std::cerr << "gdcm::" << msg1 << ' ' << msg2 + << std::endl << std::flush; } }