mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-25 07:35:40 -07:00
more verbosity
This commit is contained in:
parent
4356cf1151
commit
831dafc456
3 changed files with 4 additions and 3 deletions
|
@ -5808,7 +5808,7 @@ static int CmdHF14ADesCreateFile(const char *Cmd) {
|
||||||
return PM3_ESOFT;
|
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();
|
DropField();
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
@ -6077,7 +6077,7 @@ static int CmdHF14ADesCreateRecordFile(const char *Cmd) {
|
||||||
return PM3_ESOFT;
|
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();
|
DropField();
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|
|
@ -1209,7 +1209,7 @@ const DesfireCreateFileCommandsS *GetDesfireFileCmdRec(uint8_t type) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *GetDesfireFileType(uint8_t type) {
|
const char *GetDesfireFileType(uint8_t type) {
|
||||||
const DesfireCreateFileCommandsS *res = GetDesfireFileCmdRec(type);
|
const DesfireCreateFileCommandsS *res = GetDesfireFileCmdRec(type);
|
||||||
if (res != NULL)
|
if (res != NULL)
|
||||||
return res->text;
|
return res->text;
|
||||||
|
|
|
@ -87,6 +87,7 @@ void DesfirePrintFileSettings(uint8_t *data, size_t len);
|
||||||
void DesfirePrintSetFileSettings(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);
|
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 DesfireCreateFile(DesfireContext *dctx, uint8_t ftype, uint8_t *fdata, size_t fdatalen, bool checklen);
|
||||||
int DesfireDeleteFile(DesfireContext *dctx, uint8_t fid);
|
int DesfireDeleteFile(DesfireContext *dctx, uint8_t fid);
|
||||||
int DesfireCommitTransaction(DesfireContext *dctx, bool enable_options, uint8_t options);
|
int DesfireCommitTransaction(DesfireContext *dctx, bool enable_options, uint8_t options);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue