aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-05-20 02:16:05 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-25 20:37:16 -0400
commit38511108a37e5551b2bfe143a957132d46f9e6e7 (patch)
tree886c43b6f79b9604c2bcc2dff03b56a6ead9f69e
parent65a23d6706ce2d58e302970971e41688783bf63f (diff)
n2_crypto: Log algorithm success/failure in kernel log.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/crypto/n2_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index 3a4eed4bba2a..77939e40e26f 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -1277,8 +1277,11 @@ static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl)
1277 list_add(&p->entry, &cipher_algs); 1277 list_add(&p->entry, &cipher_algs);
1278 err = crypto_register_alg(alg); 1278 err = crypto_register_alg(alg);
1279 if (err) { 1279 if (err) {
1280 pr_err("%s alg registration failed\n", alg->cra_name);
1280 list_del(&p->entry); 1281 list_del(&p->entry);
1281 kfree(p); 1282 kfree(p);
1283 } else {
1284 pr_info("%s alg registered\n", alg->cra_name);
1282 } 1285 }
1283 return err; 1286 return err;
1284} 1287}
@@ -1318,8 +1321,11 @@ static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl)
1318 list_add(&p->entry, &ahash_algs); 1321 list_add(&p->entry, &ahash_algs);
1319 err = crypto_register_ahash(ahash); 1322 err = crypto_register_ahash(ahash);
1320 if (err) { 1323 if (err) {
1324 pr_err("%s alg registration failed\n", base->cra_name);
1321 list_del(&p->entry); 1325 list_del(&p->entry);
1322 kfree(p); 1326 kfree(p);
1327 } else {
1328 pr_info("%s alg registered\n", base->cra_name);
1323 } 1329 }
1324 return err; 1330 return err;
1325} 1331}