Keep string syntax in color macros

This commit is contained in:
Philippe Teuwen committed 2019-03-10 00:56:00 +01:00
1 parent 48124f89b4
commit da6cdf014b
24 files changed
+144 -144

No files matched your search

+4 -4
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;
+2 -2
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;
}