]>
git.zerfleddert.de Git - proxmark3-svn/blob - linux/gui.c
7 #include "../winsrc/prox.h"
9 int GraphBuffer
[MAX_GRAPH_TRACE_LEN
];
11 double CursorScaleFactor
;
14 static char *logfilename
= "proxmark3.log";
16 void PrintToScrollback(char *fmt
, ...) {
18 static FILE *logfile
= NULL
;
21 if (logging
&& !logfile
) {
22 logfile
=fopen(logfilename
, "a");
24 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
29 va_start(argptr
, fmt
);
32 if (logging
&& logfile
) {
39 jetzt
= localtime(&jetzt_t
);
40 strftime(zeit
, 25, "%b %e %T", jetzt
);
42 fprintf(logfile
,"%s ", zeit
);
44 vfprintf(logfile
, fmt
, argptr
);
45 fprintf(logfile
,"\n");
51 void setlogfilename(char *fn
)