[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog libbase/log.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog libbase/log.cpp |
Date: |
Fri, 25 May 2007 07:36:44 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/05/25 07:36:44
Modified files:
. : ChangeLog
libbase : log.cpp
Log message:
* libbase/log.cpp (timestamp): include PID in timestamp,
so its easier to read the gnash-dbg.log file after browsing
the web...
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3350&r2=1.3351
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.cpp?cvsroot=gnash&r1=1.50&r2=1.51
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3350
retrieving revision 1.3351
diff -u -b -r1.3350 -r1.3351
--- ChangeLog 24 May 2007 23:29:36 -0000 1.3350
+++ ChangeLog 25 May 2007 07:36:43 -0000 1.3351
@@ -1,3 +1,9 @@
+2007-05-25 Sandro Santilli <address@hidden>
+
+ * libbase/log.cpp (timestamp): include PID in timestamp,
+ so its easier to read the gnash-dbg.log file after browsing
+ the web...
+
2007-05-24 Sandro Santilli <address@hidden>
* libbase/zlib_adapter.cpp: fix seek function to respect
Index: libbase/log.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- libbase/log.cpp 21 May 2007 06:53:36 -0000 1.50
+++ libbase/log.cpp 25 May 2007 07:36:44 -0000 1.51
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: log.cpp,v 1.50 2007/05/21 06:53:36 strk Exp $ */
+/* $Id: log.cpp,v 1.51 2007/05/25 07:36:44 strk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -109,15 +109,19 @@
string
timestamp() {
+
time_t t;
char buf[10];
memset (buf, '0', 10); // this terminates the string
time (&t); // get the current time
strftime (buf, sizeof(buf), "%H:%M:%S", localtime (&t));
- string sbuf = buf;
- return sbuf;
+ std::stringstream ss;
+ ss << getpid() << "] " << buf;
+ return ss.str();
+ //string sbuf = buf;
+ //return sbuf;
}
ostream& datetimestamp(ostream& x) {