Re: [PATCH] radeon_agp: Fix warning, format â%dâ expects type âintâ, but argument 4 has type âsize_tâ

From: Dan Nicholson
Date: Sun Jan 31 2010 - 14:02:52 EST


On Sat, Jan 30, 2010 at 12:51 PM, John Kacur <jkacur@xxxxxxxxxx> wrote:
> Fix warning by using %zu instead of %d for size_t
>
> Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
> ---
> Âdrivers/gpu/drm/radeon/radeon_agp.c | Â Â2 +-
> Â1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_agp.c b/drivers/gpu/drm/radeon/radeon_agp.c
> index c9ad7f5..1c4e523 100644
> --- a/drivers/gpu/drm/radeon/radeon_agp.c
> +++ b/drivers/gpu/drm/radeon/radeon_agp.c
> @@ -134,7 +134,7 @@ int radeon_agp_init(struct radeon_device *rdev)
> Â Â Â Âint ret;
>
> Â Â Â Âif (rdev->ddev->agp->agp_info.aper_size < 32) {
> - Â Â Â Â Â Â Â dev_warn(rdev->dev, "AGP aperture to small (%dM) "
> + Â Â Â Â Â Â Â dev_warn(rdev->dev, "AGP aperture to small (%zuM) "

As long as you're fixing this line, you might want to correct the
grammar s/to/too/.

--
Dan
--
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/