mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
textual
This commit is contained in:
parent
c3c5011e1d
commit
74f96be6be
2 changed files with 13 additions and 13 deletions
|
@ -678,7 +678,7 @@ void pm3_version(bool verbose, bool oneliner) {
|
||||||
|
|
||||||
|
|
||||||
if (oneliner) {
|
if (oneliner) {
|
||||||
PrintAndLogEx(NORMAL, "Client: RRG/Iceman compiled with " _YELLOW_(PM3CLIENTCOMPILER __VERSION__) " %s", _YELLOW_(PM3HOSTOS));
|
PrintAndLogEx(NORMAL, "Client: RRG/Iceman compiled with " _YELLOW_(PM3CLIENTCOMPILER __VERSION__ PM3HOSTOS));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -231,16 +231,16 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) {
|
||||||
timenow = gmtime(&now);
|
timenow = gmtime(&now);
|
||||||
strftime(filename, sizeof(filename), PROXLOG, timenow);
|
strftime(filename, sizeof(filename), PROXLOG, timenow);
|
||||||
if (searchHomeFilePath(&my_logfile_path, filename, true) != PM3_SUCCESS) {
|
if (searchHomeFilePath(&my_logfile_path, filename, true) != PM3_SUCCESS) {
|
||||||
fprintf(stderr, "Logging disabled!\n\n");
|
fprintf(stderr, "[-] Logging disabled!\n\n");
|
||||||
my_logfile_path = NULL;
|
my_logfile_path = NULL;
|
||||||
logging = 0;
|
logging = 0;
|
||||||
} else {
|
} else {
|
||||||
logfile = fopen(my_logfile_path, "a");
|
logfile = fopen(my_logfile_path, "a");
|
||||||
if (logfile == NULL) {
|
if (logfile == NULL) {
|
||||||
fprintf(stderr, "Can't open logfile %s, logging disabled!\n", my_logfile_path);
|
fprintf(stderr, "[-] Can't open logfile %s, logging disabled!\n", my_logfile_path);
|
||||||
logging = 0;
|
logging = 0;
|
||||||
} else {
|
} else {
|
||||||
printf("Session is logged into %s\n", my_logfile_path);
|
printf("[=] Session log %s\n", my_logfile_path);
|
||||||
}
|
}
|
||||||
free(my_logfile_path);
|
free(my_logfile_path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue