From d319b0dee34a1fa8b902176fde04379b791032f0 Mon Sep 17 00:00:00 2001 From: DidierA <1620015+DidierA@users.noreply.github.com> Date: Fri, 3 Mar 2023 16:03:30 +0100 Subject: [PATCH] hf mfdes: Use hex in error message, consistent with cmdline --- client/src/cmdhfmfdes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index cf6699180..2f45b5165 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -4307,7 +4307,7 @@ static int CmdHF14ADesDeleteFile(const char *Cmd) { CLIParserFree(ctx); if (fnum > 0x1F) { - PrintAndLogEx(ERR, "File number range is invalid (exp 0 - 31), got %d", fnum); + PrintAndLogEx(ERR, "File number range is invalid (exp 0x00 - 0x1f), got 0x%02x", fnum); return PM3_EINVARG; } @@ -4557,7 +4557,7 @@ static int CmdHF14ADesClearRecordFile(const char *Cmd) { CLIParserFree(ctx); if (fnum > 0x1F) { - PrintAndLogEx(ERR, "File number range is invalid (exp 0 - 31), got %d", fnum); + PrintAndLogEx(ERR, "File number range is invalid (exp 0x00 - 0x1f), got 0x%02x", fnum); return PM3_EINVARG; } @@ -4989,7 +4989,7 @@ static int CmdHF14ADesReadData(const char *Cmd) { CLIParserFree(ctx); if (fnum > 0x1F) { - PrintAndLogEx(ERR, "File number range is invalid (exp 0 - 31), got %d", fnum); + PrintAndLogEx(ERR, "File number range is invalid (exp 0x00 - 0x1f), got 0x%02x", fnum); return PM3_EINVARG; } @@ -5188,7 +5188,7 @@ static int CmdHF14ADesWriteData(const char *Cmd) { CLIParserFree(ctx); if (fnum > 0x1F) { - PrintAndLogEx(ERR, "File number range is invalid (exp 0 - 31), got %d", fnum); + PrintAndLogEx(ERR, "File number range is invalid (exp 0x00 - 0x1f), got 0x%02x", fnum); return PM3_EINVARG; }