Move cypto debug definitions to debug.h with other susbsystem-level debug

This commit is contained in:
Gregory Nutt
2014-07-03 07:58:43 -06:00
parent bb3dcccd98
commit edb5f312ca
5 changed files with 151 additions and 152 deletions
+2 -2
View File
@@ -76,9 +76,9 @@ void up_cryptoinitialize(void)
#if defined(CONFIG_CRYPTO_ALGTEST)
res = crypto_test();
if (res)
cryptdbg("crypto test failed\n");
cryptlldbg("crypto test failed\n");
else
cryptvdbg("crypto test OK\n");
cryptllvdbg("crypto test OK\n");
#endif
return res;
+2 -2
View File
@@ -78,7 +78,7 @@ static int do_test_aes(FAR struct cipher_testvec* test, int mode, int encrypt)
#define AES_CYPHER_TEST_ENCRYPT(mode, mode_str, count, template) \
for (i = 0; i < count; i++) { \
if (do_test_aes(template + i, mode, CYPHER_ENCRYPT)) { \
cryptdbg("Failed " mode_str " encrypt test #%i\n", i); \
cryptlldbg("Failed " mode_str " encrypt test #%i\n", i); \
return -1; \
} \
}
@@ -86,7 +86,7 @@ static int do_test_aes(FAR struct cipher_testvec* test, int mode, int encrypt)
#define AES_CYPHER_TEST_DECRYPT(mode, mode_str, count, template) \
for (i = 0; i < count; i++) { \
if (do_test_aes(template + i, mode, CYPHER_DECRYPT)) { \
cryptdbg("Failed " mode_str " decrypt test #%i\n", i); \
cryptlldbg("Failed " mode_str " decrypt test #%i\n", i); \
return -1; \
} \
}