Re: [RESEND] [PATCH 2/2] random: fix debug format strings

From: Theodore Ts'o
Date: Mon Oct 15 2012 - 23:43:23 EST


On Mon, Oct 15, 2012 at 11:43:29PM +0200, Jiri Kosina wrote:
> Fix the following warnings in formatting debug output:
>
> drivers/char/random.c: In function âxfer_secondary_poolâ:
> drivers/char/random.c:827: warning: format â%dâ expects type âintâ, but argument 7 has type âsize_tâ
> drivers/char/random.c: In function âaccountâ:
> drivers/char/random.c:859: warning: format â%dâ expects type âintâ, but argument 5 has type âsize_tâ
> drivers/char/random.c:881: warning: format â%dâ expects type âintâ, but argument 5 has type âsize_tâ
> drivers/char/random.c: In function ârandom_readâ:
> drivers/char/random.c:1141: warning: format â%dâ expects type âintâ, but argument 5 has type âssize_tâ
> drivers/char/random.c:1145: warning: format â%dâ expects type âintâ, but argument 5 has type âssize_tâ
> drivers/char/random.c:1145: warning: format â%dâ expects type âintâ, but argument 6 has type âlong unsigned intâ
>
> by using '%zd' instead of '%d' to properly denote ssize_t/size_t conversion.
>
> Signed-off-by: Jiri Kosina <jkosina@xxxxxxx>

Applied to the random tree, thanks.

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/