From patchwork Wed Jul 29 23:43:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Streetman X-Patchwork-Id: 6896741 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9DD42C05AC for ; Wed, 29 Jul 2015 23:43:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C578F205F9 for ; Wed, 29 Jul 2015 23:43:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E52FB205F2 for ; Wed, 29 Jul 2015 23:43:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754332AbbG2Xnm (ORCPT ); Wed, 29 Jul 2015 19:43:42 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36329 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754173AbbG2Xnm (ORCPT ); Wed, 29 Jul 2015 19:43:42 -0400 Received: by pachj5 with SMTP id hj5so13019115pac.3; Wed, 29 Jul 2015 16:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=JbJ0iWOhbvHhDne8ocegLCJj7rRcda7hF5So0NbHRrk=; b=xnSENmrwTPDb3dT6y1QLRSHX6v7/A+AzkRBpG5hj4C77Kbr4gGJ9k5mS4fHEnZgfV6 vD+vjIkuNY4PM5O8fMsFTGkXEeY485/URbH3+SkLClYPEQ4x2C6Fe+E7g4H/13Ldi1ls KiO3NbL1thYH+ViIo84JfaVuVq9i2/roaqPU8OXKZstHMt78VjTp2wf74RJz/o4qXd4T g/cO89h1tcCl0lmNGH2cmIJvtPShujV9mi+tjMHps2rxeMhicGdLy6Z+/85G3rNhbrTj DXF6nkzALspSufjMQBAVLvUleafq9/2CoCzx2kH1nSJM3XMdqsgiRCPfPdMwVgofHTiF Ox/Q== X-Received: by 10.67.5.2 with SMTP id ci2mr98185425pad.97.1438213421836; Wed, 29 Jul 2015 16:43:41 -0700 (PDT) Received: from toughbook.com (user-0c8ho8q.cable.mindspring.com. [24.136.225.26]) by smtp.gmail.com with ESMTPSA id fj6sm295142pdb.21.2015.07.29.16.43.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 16:43:41 -0700 (PDT) From: Dan Streetman To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Streetman Subject: [PATCH] crypto: nx - use be32_to_cpu for __be32 field in debug msg Date: Wed, 29 Jul 2015 19:43:29 -0400 Message-Id: <1438213409-6968-1-git-send-email-ddstreet@ieee.org> X-Mailer: git-send-email 2.1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/crypto/nx/nx-842-powernv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;