summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx
diff options
context:
space:
mode:
authorDan Streetman2015-07-30 01:43:29 +0200
committerHerbert Xu2015-07-30 15:49:41 +0200
commit844190dbeb5f37af5218f8587aeae25682fcb3a1 (patch)
tree6ebd2f96206c19bd068380f1acbcfea5cb635223 /drivers/crypto/nx
parentcrypto: nx - don't err if compressed output > input (diff)
downloadkernel-qcow2-linux-844190dbeb5f37af5218f8587aeae25682fcb3a1.tar.gz
kernel-qcow2-linux-844190dbeb5f37af5218f8587aeae25682fcb3a1.tar.xz
kernel-qcow2-linux-844190dbeb5f37af5218f8587aeae25682fcb3a1.zip
crypto: nx - use be32_to_cpu for __be32 field in debug msg
One of the debug messages in the NX 842 PowerNV driver is missing the required be32_to_cpu() wrapper when accessing the __be32 field csb->count. Add the wrapper so the message will show the correct count. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx')
-rw-r--r--drivers/crypto/nx/nx-842-powernv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/nx/nx-842-powernv.c b/drivers/crypto/nx/nx-842-powernv.c
index 684ce51d2d68..3750e13d8721 100644
--- a/drivers/crypto/nx/nx-842-powernv.c
+++ b/drivers/crypto/nx/nx-842-powernv.c
@@ -346,7 +346,8 @@ static int wait_for_csb(struct nx842_workmem *wmem,
}
/* successful completion */
- pr_debug_ratelimited("Processed %u bytes in %lu us\n", csb->count,
+ pr_debug_ratelimited("Processed %u bytes in %lu us\n",
+ be32_to_cpu(csb->count),
(unsigned long)ktime_us_delta(now, start));
return 0;