From: Nicolas Ferre Date: Tue, 15 Oct 2013 14:37:44 +0000 (+0200) Subject: crypto: atmel-sha - add sha information to the log X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1ca5b7d95315c42cf0b78d33cd316e404a9f137c;p=deliverable%2Flinux.git crypto: atmel-sha - add sha information to the log Depending on peripheral capabilities, print SHA information at the end of the probe function. Signed-off-by: Nicolas Ferre Acked-by: Herbert Xu --- diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c index ecfdf727cc36..0618be06b9fb 100644 --- a/drivers/crypto/atmel-sha.c +++ b/drivers/crypto/atmel-sha.c @@ -1469,7 +1469,9 @@ static int atmel_sha_probe(struct platform_device *pdev) if (err) goto err_algs; - dev_info(dev, "Atmel SHA1/SHA256\n"); + dev_info(dev, "Atmel SHA1/SHA256%s%s\n", + sha_dd->caps.has_sha224 ? "/SHA224" : "", + sha_dd->caps.has_sha_384_512 ? "/SHA384/SHA512" : ""); return 0;