]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/ui.c
7 double CursorScaleFactor
;
8 int PlotGridX
, PlotGridY
;
11 static char *logfilename
= "proxmark3.log";
13 void PrintAndLog(char *fmt
, ...)
15 va_list argptr
, argptr2
;
16 static FILE *logfile
= NULL
;
19 if (logging
&& !logfile
) {
20 logfile
=fopen(logfilename
, "a");
22 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
27 va_start(argptr
, fmt
);
28 va_copy(argptr2
, argptr
);
32 if (logging
&& logfile
) {
39 jetzt
= localtime(&jetzt_t
);
40 strftime(zeit
, 25, "%b %e %T", jetzt
);
42 fprintf(logfile
,"%s ", zeit
);
44 vfprintf(logfile
, fmt
, argptr2
);
45 fprintf(logfile
,"\n");
51 void SetLogFilename(char *fn
)