]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/ui.c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
3 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
8 //-----------------------------------------------------------------------------
10 //-----------------------------------------------------------------------------
18 double CursorScaleFactor
;
19 int PlotGridX
, PlotGridY
;
22 static char *logfilename
= "proxmark3.log";
24 void PrintAndLog(char *fmt
, ...)
26 va_list argptr
, argptr2
;
27 static FILE *logfile
= NULL
;
30 if (logging
&& !logfile
) {
31 logfile
=fopen(logfilename
, "a");
33 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
38 va_start(argptr
, fmt
);
39 va_copy(argptr2
, argptr
);
43 if (logging
&& logfile
) {
44 vfprintf(logfile
, fmt
, argptr2
);
45 fprintf(logfile
,"\n");
51 void SetLogFilename(char *fn
)