]>
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
;
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
)