]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - linux/gui.c
7 #include "../winsrc/prox.h"
9 int GraphBuffer
[MAX_GRAPH_TRACE_LEN
];
11 double CursorScaleFactor
;
12 int PlotGridX
, PlotGridY
;
16 static char *logfilename
= "proxmark3.log";
18 void PrintToScrollback(char *fmt
, ...) {
19 va_list argptr
, argptr2
;
20 static FILE *logfile
= NULL
;
23 if (logging
&& !logfile
) {
24 logfile
=fopen(logfilename
, "a");
26 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
31 va_start(argptr
, fmt
);
32 va_copy(argptr2
, argptr
);
36 if (logging
&& logfile
) {
43 jetzt
= localtime(&jetzt_t
);
44 strftime(zeit
, 25, "%b %e %T", jetzt
);
46 fprintf(logfile
,"%s ", zeit
);
48 vfprintf(logfile
, fmt
, argptr2
);
49 fprintf(logfile
,"\n");
55 void setlogfilename(char *fn
)