crypto: sun4i-ss - hide the Invalid keylen message
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Thu, 14 Nov 2019 10:58:52 +0000 (11:58 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:37 +0000 (18:48 +0800)
Drop the "Invalid keylen" message to debug level, it adds no value, and
when CRYPTO_EXTRA_TEST is enabled, it floods the console.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c

index 5ab919c17e7864ff86c944c1f5752fac56daa470..cb2b0874f68fead79181968d6eb671c24375a357 100644 (file)
@@ -540,7 +540,7 @@ int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
                op->keymode = SS_AES_256BITS;
                break;
        default:
-               dev_err(ss->dev, "ERROR: Invalid keylen %u\n", keylen);
+               dev_dbg(ss->dev, "ERROR: Invalid keylen %u\n", keylen);
                crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
                return -EINVAL;
        }