[Pcsclite-cvs-commit] r5896 - /trunk/PCSC/src/debuglog.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sun Aug 21 13:37:38 UTC 2011
Author: rousseau
Date: Sun Aug 21 13:37:38 2011
New Revision: 5896
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5896
Log:
log_line(): correctly calculate delta time when no color is used
The update of last_time was only done in case of colorization
(LogDoColor). So on unsupported consoles the time was wrong.
Modified:
trunk/PCSC/src/debuglog.c
Modified: trunk/PCSC/src/debuglog.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/debuglog.c?rev=5896&op=diff
==============================================================================
--- trunk/PCSC/src/debuglog.c (original)
+++ trunk/PCSC/src/debuglog.c Sun Aug 21 13:37:38 2011
@@ -137,6 +137,8 @@
else
delta = 99999999;
+ last_time = new_time;
+
if (LogDoColor)
{
const char *color_pfx = "", *color_sfx = "\33[0m";
@@ -164,7 +166,6 @@
printf("%s%.8d%s %s%s%s\n", time_pfx, delta, time_sfx,
color_pfx, DebugBuffer, color_sfx);
- last_time = new_time;
}
else
{
More information about the Pcsclite-cvs-commit
mailing list