crypto: ccree - turn errors to debug msgs
We have several loud error log messages that are already reported via the normal return code mechanism and produce a lot of noise when the new testmgr extra test are enabled. Turn these into debug only messages Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Esse commit está contido em:
@@ -302,7 +302,7 @@ static int cc_cipher_sethkey(struct crypto_skcipher *sktfm, const u8 *key,
|
||||
keylen = hki.keylen;
|
||||
|
||||
if (validate_keys_sizes(ctx_p, keylen)) {
|
||||
dev_err(dev, "Unsupported key size %d.\n", keylen);
|
||||
dev_dbg(dev, "Unsupported key size %d.\n", keylen);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -392,7 +392,7 @@ static int cc_cipher_setkey(struct crypto_skcipher *sktfm, const u8 *key,
|
||||
/* STAT_PHASE_0: Init and sanity checks */
|
||||
|
||||
if (validate_keys_sizes(ctx_p, keylen)) {
|
||||
dev_err(dev, "Unsupported key size %d.\n", keylen);
|
||||
dev_dbg(dev, "Unsupported key size %d.\n", keylen);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -833,7 +833,7 @@ static int cc_cipher_process(struct skcipher_request *req,
|
||||
|
||||
/* TODO: check data length according to mode */
|
||||
if (validate_data_size(ctx_p, nbytes)) {
|
||||
dev_err(dev, "Unsupported data size %d.\n", nbytes);
|
||||
dev_dbg(dev, "Unsupported data size %d.\n", nbytes);
|
||||
rc = -EINVAL;
|
||||
goto exit_process;
|
||||
}
|
||||
|
Referência em uma nova issue
Block a user