public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephan Mueller <smueller@chronox•de>
To: herbert@gondor•apana.org.au
Cc: joe@perches•com, dan.carpenter@oracle•com,
	Stephen Rothwell <sfr@canb•auug.org.au>,
	fengguang.wu@intel•com, Randy Dunlap <rdunlap@infradead•org>,
	linux-crypto@vger•kernel.org, linux-next@vger•kernel.org,
	linux-kernel@vger•kernel.org, Rafael Aquini <aquini@redhat•com>,
	aris@redhat•com
Subject: [PATCH 2/6] DRBG: Fix format string for debugging statements
Date: Sun, 06 Jul 2014 02:24:03 +0200	[thread overview]
Message-ID: <10113803.ZGav7NrUuW@myon.chronox.de> (raw)
In-Reply-To: <2266932.bfVPMOTOeI@myon.chronox.de>

The initial format strings caused warnings on several architectures. The
updated format strings now match the variable types.

Reported-by: kbuild test robot <fengguang.wu@intel•com>
Reported-by: Randy Dunlap <rdunlap@infradead•org>
CC: Joe Perches <joe@perches•com>
Signed-off-by: Stephan Mueller <smueller@chronox•de>
---
 crypto/drbg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/drbg.c b/crypto/drbg.c
index cce915b..c9b4c49 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -1106,7 +1106,7 @@ static int drbg_seed(struct drbg_state *drbg, struct drbg_string *pers,
 
 	/* 9.1 / 9.2 / 9.3.1 step 3 */
 	if (pers && pers->len > (drbg_max_addtl(drbg))) {
-		pr_devel("DRBG: personalization string too long %lu\n",
+		pr_devel("DRBG: personalization string too long %zu\n",
 			 pers->len);
 		return -EINVAL;
 	}
@@ -1984,7 +1984,7 @@ static int __init drbg_init(void)
 
 	if (ARRAY_SIZE(drbg_cores) * 2 > ARRAY_SIZE(drbg_algs)) {
 		pr_info("DRBG: Cannot register all DRBG types"
-			"(slots needed: %lu, slots available: %lu)\n",
+			"(slots needed: %zu, slots available: %zu)\n",
 			ARRAY_SIZE(drbg_cores) * 2, ARRAY_SIZE(drbg_algs));
 		return ret;
 	}
-- 
1.9.3

  parent reply	other threads:[~2014-07-06  0:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06  0:22 [PATCH 0/6] DRBG: Rebasing unapplied patches Stephan Mueller
2014-07-06  0:23 ` [PATCH 1/6] DRBG: cleanup of preprocessor macros Stephan Mueller
2014-07-06  0:24 ` Stephan Mueller [this message]
2014-07-06  0:24 ` [PATCH 3/6] DRBG: Call CTR DRBG DF function only once Stephan Mueller
2014-07-06  0:25 ` [PATCH 4/6] DRBG: Select correct DRBG core for stdrng Stephan Mueller
2014-07-06  0:25 ` [PATCH 5/6] DRBG: Mix a time stamp into DRBG state Stephan Mueller
2014-07-06  0:26 ` [PATCH 6/6] DRBG: HMAC-SHA1 DRBG has crypto strength of 128 bits Stephan Mueller
2014-07-08 13:21 ` [PATCH 0/6] DRBG: Rebasing unapplied patches Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10113803.ZGav7NrUuW@myon.chronox.de \
    --to=smueller@chronox$(echo .)de \
    --cc=aquini@redhat$(echo .)com \
    --cc=aris@redhat$(echo .)com \
    --cc=dan.carpenter@oracle$(echo .)com \
    --cc=fengguang.wu@intel$(echo .)com \
    --cc=herbert@gondor$(echo .)apana.org.au \
    --cc=joe@perches$(echo .)com \
    --cc=linux-crypto@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=rdunlap@infradead$(echo .)org \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox