mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-23 07:37:23 +08:00
Fix print level should be ERR, was FAILED
This commit is contained in:
parent
f395b28643
commit
e129bee161
1 changed files with 4 additions and 4 deletions
|
@ -105,19 +105,19 @@ bool isValidGallagherCredentials(uint64_t region_code, uint64_t facility_code, u
|
|||
|
||||
// validate input
|
||||
if (region_code > 0x0f) {
|
||||
PrintAndLogEx(FAILED, "Region code must be 0 <= rc <= 15 (4 bits), received: %d", region_code);
|
||||
PrintAndLogEx(ERR, "Region code must be 0 <= rc <= 15 (4 bits), received: %d", region_code);
|
||||
isValid = false;
|
||||
}
|
||||
if (facility_code > 0xffff) {
|
||||
PrintAndLogEx(FAILED, "Facility code must be 0 <= fc <= 65535 (2 bytes), received: %d", facility_code);
|
||||
PrintAndLogEx(ERR, "Facility code must be 0 <= fc <= 65535 (2 bytes), received: %d", facility_code);
|
||||
isValid = false;
|
||||
}
|
||||
if (card_number > 0xffffff) {
|
||||
PrintAndLogEx(FAILED, "Card number must be 0 <= cn <= 16777215 (3 bytes), received: %d", card_number);
|
||||
PrintAndLogEx(ERR, "Card number must be 0 <= cn <= 16777215 (3 bytes), received: %d", card_number);
|
||||
isValid = false;
|
||||
}
|
||||
if (issue_level > 0x0f) {
|
||||
PrintAndLogEx(FAILED, "Issue level must be 0 <= il <= 15 (4 bits), received: %d", issue_level);
|
||||
PrintAndLogEx(ERR, "Issue level must be 0 <= il <= 15 (4 bits), received: %d", issue_level);
|
||||
isValid = false;
|
||||
}
|
||||
return isValid;
|
||||
|
|
Loading…
Reference in a new issue