projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: 'lf cotag demod' - now finds FC/CN Thanks to @marshmellow42
[proxmark3-svn]
/
client
/
ui.c
diff --git
a/client/ui.c
b/client/ui.c
index 6819f649f0b47b3f0ad398f5ae61c0801007b72c..87fede08d149b0f3afe30ead07d88b48d7ff4968 100644
(file)
--- a/
client/ui.c
+++ b/
client/ui.c
@@
-25,7
+25,10
@@
void PrintAndLog(char *fmt, ...)
va_list argptr, argptr2;
static FILE *logfile = NULL;
static int logging = 1;
va_list argptr, argptr2;
static FILE *logfile = NULL;
static int logging = 1;
-
+ // time_t current_time;
+ // struct tm* tm_info;
+ // char buffer[26] = {0};
+
// lock this section to avoid interlacing prints from different threats
pthread_mutex_lock(&print_lock);
// lock this section to avoid interlacing prints from different threats
pthread_mutex_lock(&print_lock);
@@
-63,6
+66,16
@@
void PrintAndLog(char *fmt, ...)
}
if (logging && logfile) {
}
if (logging && logfile) {
+
+ /*
+ // Obtain current time.
+ current_time = time(NULL);
+ // Convert to local time format.
+ tm_info = localtime(¤t_time);
+ strftime(buffer, 26, "%Y-%m-%d %H:%M:%S", tm_info);
+ fprintf(logfile, "%s ", buffer);
+ */
+
vfprintf(logfile, fmt, argptr2);
fprintf(logfile,"\n");
fflush(logfile);
vfprintf(logfile, fmt, argptr2);
fprintf(logfile,"\n");
fflush(logfile);
Impressum
,
Datenschutz