]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/ui.c
99c9f17007240191a7da4f14fd6b6464385a096c
7 double CursorScaleFactor
;
8 int PlotGridX
, PlotGridY
;
11 static char *logfilename
= "proxmark3.log";
13 // FIXME: ifndef not really nice...
14 // We should eventually get rid of it once
15 // we fully factorize the code between *nix and windows
16 // (using pthread and alikes...)
18 void PrintAndLog(char *fmt
, ...)
20 va_list argptr
, argptr2
;
21 static FILE *logfile
= NULL
;
24 if (logging
&& !logfile
) {
25 logfile
=fopen(logfilename
, "a");
27 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
32 va_start(argptr
, fmt
);
33 va_copy(argptr2
, argptr
);
37 if (logging
&& logfile
) {
38 vfprintf(logfile
, fmt
, argptr2
);
39 fprintf(logfile
,"\n");
46 void SetLogFilename(char *fn
)