diff --git a/client/src/mifare/gallaghercore.c b/client/src/mifare/gallaghercore.c index adb72b65c..fb220eeb1 100644 --- a/client/src/mifare/gallaghercore.c +++ b/client/src/mifare/gallaghercore.c @@ -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;