[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libCERTI PrettyDebug.cc
From: |
certi-cvs |
Subject: |
[certi-cvs] certi/libCERTI PrettyDebug.cc |
Date: |
Fri, 16 May 2008 08:54:17 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: ROUSSELOT <rousse> 08/05/16 08:54:17
Modified files:
libCERTI : PrettyDebug.cc
Log message:
minimize trace by keeping only basename
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/PrettyDebug.cc?cvsroot=certi&r1=4.7&r2=4.8
Patches:
Index: PrettyDebug.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/PrettyDebug.cc,v
retrieving revision 4.7
retrieving revision 4.8
diff -u -b -r4.7 -r4.8
--- PrettyDebug.cc 5 May 2008 08:27:11 -0000 4.7
+++ PrettyDebug.cc 16 May 2008 08:54:16 -0000 4.8
@@ -19,7 +19,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA
//
-// $Id: PrettyDebug.cc,v 4.7 2008/05/05 08:27:11 erk Exp $
+// $Id: PrettyDebug.cc,v 4.8 2008/05/16 08:54:16 rousse Exp $
// ----------------------------------------------------------------------------
@@ -40,6 +40,7 @@
#include <unistd.h>
#include <string>
#endif
+#include <libgen.h>
using std::cout ;
using std::cerr ;
@@ -87,9 +88,9 @@
sprintf( buffer, "HLALOG - %ld.%06ld -
%s",tv.tv_sec,tv.tv_usec,federateName_.c_str() ) ;
if (Message != NULL)
- theOutputStream << buffer << " - " << theHeaderMessage << "> "
<< Message;
+ theOutputStream << buffer << " - " << basename((char
*)theHeaderMessage) << "> " << Message;
else
- theOutputStream << buffer << " - " << theHeaderMessage <<
pdSEmptyMessage;
+ theOutputStream << buffer << " - " << basename((char
*)theHeaderMessage) << pdSEmptyMessage;
theOutputStream.flush();
#endif
}
@@ -274,4 +275,4 @@
#endif // NDEBUG
-// $Id: PrettyDebug.cc,v 4.7 2008/05/05 08:27:11 erk Exp $
+// $Id: PrettyDebug.cc,v 4.8 2008/05/16 08:54:16 rousse Exp $