Skip to content

Commit 844190d

Browse files
ddstreetherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 7371c0a commit 844190d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/crypto/nx/nx-842-powernv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ static int wait_for_csb(struct nx842_workmem *wmem,
346346
}
347347

348348
/* successful completion */
349-
pr_debug_ratelimited("Processed %u bytes in %lu us\n", csb->count,
349+
pr_debug_ratelimited("Processed %u bytes in %lu us\n",
350+
be32_to_cpu(csb->count),
350351
(unsigned long)ktime_us_delta(now, start));
351352

352353
return 0;

0 commit comments

Comments
 (0)