Keep string syntax in color macros

This commit is contained in:
Philippe Teuwen 2019-03-10 00:56:00 +01:00
commit da6cdf014b
24 changed files with 144 additions and 144 deletions

View file

@ -158,10 +158,10 @@ int roca_self_test(void)
if (emv_rocacheck(keyp, 64, false)) {
PrintAndLogEx(SUCCESS, "Weak modulus [ %s]", _GREEN_(PASS));
PrintAndLogEx(SUCCESS, "Weak modulus [ %s]", _GREEN_("PASS"));
} else {
ret++;
PrintAndLogEx(FAILED, "Weak modulus [ %s]", _RED_(FAIL));
PrintAndLogEx(FAILED, "Weak modulus [ %s]", _RED_("FAIL"));
}
// negative
@ -172,9 +172,9 @@ int roca_self_test(void)
if (emv_rocacheck(keyn, 64, false)) {
ret++;
PrintAndLogEx(FAILED, "Strong modulus [ %s]", _RED_(FAIL));
PrintAndLogEx(FAILED, "Strong modulus [ %s]", _RED_("FAIL"));
} else {
PrintAndLogEx(SUCCESS, "Strong modulus [ %s]", _GREEN_(PASS));
PrintAndLogEx(SUCCESS, "Strong modulus [ %s]", _GREEN_("PASS"));
}
return ret;

View file

@ -98,9 +98,9 @@ int ExecuteCryptoTests(bool verbose)
PrintAndLog("\n--------------------------");
if (TestFail)
PrintAndLogEx(FAILED, "\tTest(s) [ %s ]", _RED_(FAIL));
PrintAndLogEx(FAILED, "\tTest(s) [ %s ]", _RED_("FAIL"));
else
PrintAndLogEx(SUCCESS, "\tTest(s) [ %s ]", _GREEN_(OK));
PrintAndLogEx(SUCCESS, "\tTest(s) [ %s ]", _GREEN_("OK"));
return TestFail;
}