diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 23:01:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 23:26:35 +0200 |
commit | 38c18b1364f7afa358b1a96464c0a4d6f737c78f (patch) | |
tree | 4048844deb9625c25f874e56ad336e9d0642d0df /src/crypto/zinc/selftest/poly1305.h | |
parent | b161ec0f59cb93132fe6289f2b19a2fb7f893595 (diff) |
crypto: rename DEBUG to SELFTEST
Also we make selftest errors of type err, so that they're obvious in
dmesg.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/selftest/poly1305.h')
-rw-r--r-- | src/crypto/zinc/selftest/poly1305.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/crypto/zinc/selftest/poly1305.h b/src/crypto/zinc/selftest/poly1305.h index e806ab2..9c12feb 100644 --- a/src/crypto/zinc/selftest/poly1305.h +++ b/src/crypto/zinc/selftest/poly1305.h @@ -3,7 +3,7 @@ * Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ -#ifdef DEBUG +#ifdef CONFIG_ZINC_SELFTEST struct poly1305_testvec { const u8 *input, *output, *key; size_t ilen; @@ -1057,7 +1057,7 @@ static bool __init poly1305_selftest(void) poly1305_final(&poly1305, out, &simd_context); if (memcmp(out, poly1305_testvecs[i].output, POLY1305_MAC_SIZE)) { - pr_info("poly1305 self-test %zu: FAIL\n", i + 1); + pr_err("poly1305 self-test %zu: FAIL\n", i + 1); success = false; } simd_relax(&simd_context); @@ -1078,8 +1078,8 @@ static bool __init poly1305_selftest(void) poly1305_final(&poly1305, out, &simd_context); if (memcmp(out, poly1305_testvecs[i].output, POLY1305_MAC_SIZE)) { - pr_info("poly1305 self-test %zu (split %zu): FAIL\n", - i + 1, j); + pr_err("poly1305 self-test %zu (split %zu): FAIL\n", + i + 1, j); success = false; } @@ -1095,8 +1095,8 @@ static bool __init poly1305_selftest(void) poly1305_final(&poly1305, out, &simd_context); if (memcmp(out, poly1305_testvecs[i].output, POLY1305_MAC_SIZE)) { - pr_info("poly1305 self-test %zu (split %zu, mixed simd): FAIL\n", - i + 1, j); + pr_err("poly1305 self-test %zu (split %zu, mixed simd): FAIL\n", + i + 1, j); success = false; } simd_relax(&simd_context); |