mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
chg, textual
This commit is contained in:
parent
519d2e4917
commit
64322896f2
1 changed files with 4 additions and 5 deletions
|
@ -316,20 +316,20 @@ 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, LOGS_SUBDIR, filename, true) != PM3_SUCCESS) {
|
if (searchHomeFilePath(&my_logfile_path, LOGS_SUBDIR, filename, true) != PM3_SUCCESS) {
|
||||||
fprintf(stderr, "[-] Logging disabled!\n\n");
|
printf(_YELLOW_("[-]") " Logging disabled!\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);
|
printf(_YELLOW_("[-]") " Can't open logfile %s, logging disabled!\n", my_logfile_path);
|
||||||
logging = 0;
|
logging = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (session.supports_colors) {
|
if (session.supports_colors) {
|
||||||
printf(_YELLOW_("[=] ") "Session log " _YELLOW_("%s") "\n", my_logfile_path);
|
printf(_YELLOW_("[=]") " Session log " _YELLOW_("%s") "\n", my_logfile_path);
|
||||||
} else {
|
} else {
|
||||||
printf("[=] Session log %s\n", my_logfile_path);
|
printf(_YELLOW_("[=]") " Session log %s\n", my_logfile_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -363,7 +363,6 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) {
|
||||||
if (g_printAndLog & PRINTANDLOG_PRINT) {
|
if (g_printAndLog & PRINTANDLOG_PRINT) {
|
||||||
memcpy_filter_emoji(buffer3, buffer2, sizeof(buffer2), session.emoji_mode);
|
memcpy_filter_emoji(buffer3, buffer2, sizeof(buffer2), session.emoji_mode);
|
||||||
fprintf(stream, "%s", buffer3);
|
fprintf(stream, "%s", buffer3);
|
||||||
// fprintf(stream, " "); // cleaning prompt
|
|
||||||
fprintf(stream, "\n");
|
fprintf(stream, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue