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

From: John Kacur
Date: Sun Jan 31 2010 - 14:31:12 EST




On Sun, 31 Jan 2010, Dan Nicholson wrote:

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

Thanks, I saw that too, after I sent. Unfortunately, I have to respin both
patches, because there is a merge conflict after fixing the
grammar/spelling mistake.

Both patches coming up, in a separate mail.

John