From: Zach Brown Date: Tue, 3 Oct 2006 08:16:04 +0000 (-0700) Subject: [PATCH] pr_debug: aio: use size_t length modifier in pr_debug format arguments X-Git-Tag: 2.1b_release~31100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=691578cd558e647dd89ae5bc74a2307bce821186;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git [PATCH] pr_debug: aio: use size_t length modifier in pr_debug format arguments aio: use size_t length modifier in pr_debug format arguments Signed-off-by: Zach Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/aio.c b/fs/aio.c index 2e0d150..9476659 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -675,7 +675,7 @@ static ssize_t aio_run_iocb(struct kiocb *iocb) } if (!(iocb->ki_retried & 0xff)) { - pr_debug("%ld retry: %d of %d\n", iocb->ki_retried, + pr_debug("%ld retry: %zd of %zd\n", iocb->ki_retried, iocb->ki_nbytes - iocb->ki_left, iocb->ki_nbytes); } @@ -1008,7 +1008,7 @@ int fastcall aio_complete(struct kiocb *iocb, long res, long res2) pr_debug("added to ring %p at [%lu]\n", iocb, tail); - pr_debug("%ld retries: %d of %d\n", iocb->ki_retried, + pr_debug("%ld retries: %zd of %zd\n", iocb->ki_retried, iocb->ki_nbytes - iocb->ki_left, iocb->ki_nbytes); put_rq: /* everything turned out well, dispose of the aiocb. */