crypto: nx - use be32_to_cpu for __be32 field in debug msg
authorDan Streetman <ddstreet@ieee.org>
Wed, 29 Jul 2015 23:43:29 +0000 (19:43 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Jul 2015 13:49:41 +0000 (21:49 +0800)
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>
drivers/crypto/nx/nx-842-powernv.c

index 684ce51d2d6871181cfd380a9b525fd371bf6f3d..3750e13d872181c425feefafbc259c03024b75e0 100644 (file)
@@ -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;