diff mbox

crypto: nx - use be32_to_cpu for __be32 field in debug msg

Message ID 1438213409-6968-1-git-send-email-ddstreet@ieee.org (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show

Commit Message

Dan Streetman July 29, 2015, 11:43 p.m. UTC
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>
---
 drivers/crypto/nx/nx-842-powernv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Herbert Xu July 30, 2015, 1:52 p.m. UTC | #1
On Wed, Jul 29, 2015 at 07:43:29PM -0400, Dan Streetman wrote:
> 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>

Applied.
diff mbox

Patch

diff --git a/drivers/crypto/nx/nx-842-powernv.c b/drivers/crypto/nx/nx-842-powernv.c
index 684ce51..3750e13 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;