[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src log.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src log.cpp |
Date: |
Sun, 01 May 2005 05:54:31 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 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 <address@hidden>
2004 by Guillaume Melquiond <address@hidden>
@@ -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_ << ": ";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src log.cpp,
Guillaume Melquiond <=