From e129bee161be504200f0217d8f6d3747b731ae88 Mon Sep 17 00:00:00 2001 From: Matt Moran Date: Tue, 4 Jan 2022 18:06:20 +1300 Subject: [PATCH] Fix print level should be ERR, was FAILED --- client/src/mifare/gallaghercore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;