]> git.baikalelectronics.ru Git - kernel.git/commit
random: fix debug format strings
authorJiri Kosina <jkosina@suse.cz>
Mon, 15 Oct 2012 21:43:29 +0000 (23:43 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Nov 2012 12:12:20 +0000 (07:12 -0500)
commit220cfb0ffaf53061857671b3f269c78c2927afb6
treea3d60ca8bccc6b611a1bb6f9e9c9d5e85f32e008
parentc40d91a56b71844dce74dda9c586bac7bf2fa349
random: fix debug format strings

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@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c