Skip to content

Commit

Permalink
crypto: nx - use be32_to_cpu for __be32 field in debug msg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Streetman authored and Herbert Xu committed Jul 30, 2015
1 parent 7371c0a commit 844190d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/crypto/nx/nx-842-powernv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 844190d

Please sign in to comment.