Skip to content

Commit

Permalink
drm/kms/radeon/agp: Fix warning, format ‘%d’ expects type ‘int’, but …
Browse files Browse the repository at this point in the history
…argument 4 has type ‘size_t’

- Fix warning by using %zu instead of %d for size_t
- Fix spelling mistake, "to" should be "too".

Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
John Kacur authored and Dave Airlie committed Feb 1, 2010
1 parent db78e27 commit cdb6e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 too small (%zuM) "
"need at least 32M, disabling AGP\n",
rdev->ddev->agp->agp_info.aper_size);
return -EINVAL;
Expand Down

0 comments on commit cdb6e37

Please sign in to comment.