]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/gui.c
b8761d6d6c6d81f2ade200461aaa89adc8430ad1
8 int GraphBuffer
[MAX_GRAPH_TRACE_LEN
];
10 double CursorScaleFactor
;
11 int PlotGridX
, PlotGridY
;
15 static char *logfilename
= "proxmark3.log";
17 void PrintToScrollback(char *fmt
, ...) {
18 va_list argptr
, argptr2
;
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
);
31 va_copy(argptr2
, argptr
);
35 if (logging
&& logfile
) {
42 jetzt
= localtime(&jetzt_t
);
43 strftime(zeit
, 25, "%b %e %T", jetzt
);
45 fprintf(logfile
,"%s ", zeit
);
47 vfprintf(logfile
, fmt
, argptr2
);
48 fprintf(logfile
,"\n");
54 void setlogfilename(char *fn
)