]>
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
;
15 static char *logfilename
= "proxmark3.log";
17 void PrintToScrollback(char *fmt
, ...) {
19 static FILE *logfile
= NULL
;
22 if (logging
&& !logfile
) {
23 logfile
=fopen(logfilename
, "a");
25 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
30 va_start(argptr
, fmt
);
33 if (logging
&& logfile
) {
40 jetzt
= localtime(&jetzt_t
);
41 strftime(zeit
, 25, "%b %e %T", jetzt
);
43 fprintf(logfile
,"%s ", zeit
);
45 vfprintf(logfile
, fmt
, argptr
);
46 fprintf(logfile
,"\n");
52 void setlogfilename(char *fn
)