search for: bc20438

Displaying 1 result from an estimated 1 matches for "bc20438".

Did you mean: 20438
2010 Sep 20
0
No subject
+0100 From: Daniel Schall <tinc-devel at mon-clan.de> Date: Mon, 3 Jan 2011 21:04:17 +0100 Subject: [PATCH] Console Logging showing user-readable datetime Logging using flags instead of counters diff --git a/src/logger.c b/src/logger.c index bc20438..5312ef5 100644 --- a/src/logger.c +++ b/src/logger.c @@ -69,14 +69,23 @@ =20 va_start(ap, format); =20 + time_t t =3D time(NULL); + char time[32]; + char* time1 =3D asctime(localtime(&t)); + strncpy(time, time1, 26); + char* newline =3D strchr(time, '\n'); + if(newline) + *newline =...