more verbosity

This commit is contained in:
merlokk committed 2021-07-26 19:33:40 +03:00
1 parent 4356cf1151
commit 831dafc456
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -5808,7 +5808,7 @@ static int CmdHF14ADesCreateFile(const char *Cmd) {
return PM3_ESOFT;
}
PrintAndLogEx(SUCCESS, "File %02x in the app %06x created " _GREEN_("successfully"), data[0], appid);
PrintAndLogEx(SUCCESS, "%s file %02x in the app %06x created " _GREEN_("successfully"), GetDesfireFileType(filetype), data[0], appid);
DropField();
return PM3_SUCCESS;
@@ -6077,7 +6077,7 @@ static int CmdHF14ADesCreateRecordFile(const char *Cmd) {
return PM3_ESOFT;
}
PrintAndLogEx(SUCCESS, "Record file %02x in the app %06x created " _GREEN_("successfully"), data[0], appid);
PrintAndLogEx(SUCCESS, "%s file %02x in the app %06x created " _GREEN_("successfully"), GetDesfireFileType(filetype), data[0], appid);
DropField();
return PM3_SUCCESS;
+1 -1
View File
@@ -1209,7 +1209,7 @@ const DesfireCreateFileCommandsS *GetDesfireFileCmdRec(uint8_t type) {
return NULL;
}
static const char *GetDesfireFileType(uint8_t type) {
const char *GetDesfireFileType(uint8_t type) {
const DesfireCreateFileCommandsS *res = GetDesfireFileCmdRec(type);
if (res != NULL)
return res->text;
+1
View File
@@ -87,6 +87,7 @@ void DesfirePrintFileSettings(uint8_t *data, size_t len);
void DesfirePrintSetFileSettings(uint8_t *data, size_t len);
void DesfirePrintCreateFileSettings(uint8_t filetype, uint8_t *data, size_t len);
const char *GetDesfireFileType(uint8_t type);
int DesfireCreateFile(DesfireContext *dctx, uint8_t ftype, uint8_t *fdata, size_t fdatalen, bool checklen);
int DesfireDeleteFile(DesfireContext *dctx, uint8_t fid);
int DesfireCommitTransaction(DesfireContext *dctx, bool enable_options, uint8_t options);