mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ int up_cryptoinitialize(void)
|
||||
res = crypto_test();
|
||||
if (res)
|
||||
{
|
||||
cryptllerr("ERROR: crypto test failed\n");
|
||||
crypterr("ERROR: crypto test failed\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+2
-2
@@ -86,7 +86,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)) { \
|
||||
cryptllerr("ERROR: Failed " mode_str " encrypt test #%i\n", i); \
|
||||
crypterr("ERROR: Failed " mode_str " encrypt test #%i\n", i); \
|
||||
return -1; \
|
||||
} \
|
||||
}
|
||||
@@ -94,7 +94,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)) { \
|
||||
cryptllerr("ERROR: Failed " mode_str " decrypt test #%i\n", i); \
|
||||
crypterr("ERROR: Failed " mode_str " decrypt test #%i\n", i); \
|
||||
return -1; \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user