CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <[EMAIL PROTECTED]> 05/05/01 09:54:30
Modified files:
src : log.cpp
Log message:
Workaround the EOL at the end of the timestamp, and reduce its size.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/log.cpp.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
Patches:
Index: wesnoth/src/log.cpp
diff -u wesnoth/src/log.cpp:1.23 wesnoth/src/log.cpp:1.24
--- wesnoth/src/log.cpp:1.23 Sun May 1 08:57:54 2005
+++ wesnoth/src/log.cpp Sun May 1 09:54:30 2005
@@ -1,4 +1,4 @@
-/* $Id: log.cpp,v 1.23 2005/05/01 08:57:54 silene Exp $ */
+/* $Id: log.cpp,v 1.24 2005/05/01 09:54:30 silene Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
2004 by Guillaume Melquiond <[EMAIL PROTECTED]>
@@ -92,7 +92,9 @@
else {
if (timestamp) {
time_t t = time(NULL);
- std::cerr << ctime(&t) << ' ';
+ char buf[100];
+ strftime(buf, 100, "%b %d %H:%M:%S ", localtime(&t));
+ std::cerr << buf;
}
if (show_names)
std::cerr << name_ << ' ' << d.name_ << ": ";