Fix print level should be ERR, was FAILED

This commit is contained in:
Matt Moran 2022-01-04 18:06:20 +13:00
parent f395b28643
commit e129bee161

View file

@ -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;