Skip to content

Commit

Permalink
drm/radeon: use %zu for formatting size_t
Browse files Browse the repository at this point in the history
Fixes compiler warnings on 32bit.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Luca Tettamanti authored and Alex Deucher committed Oct 15, 2012
1 parent ceb736c commit a187193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/radeon/radeon_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int radeon_atif_verify_interface(acpi_handle handle,

size = *(u16 *) info->buffer.pointer;
if (size < 12) {
DRM_INFO("ATIF buffer is too small: %lu\n", size);
DRM_INFO("ATIF buffer is too small: %zu\n", size);
err = -EINVAL;
goto out;
}
Expand Down Expand Up @@ -485,7 +485,7 @@ static int radeon_atcs_verify_interface(acpi_handle handle,

size = *(u16 *) info->buffer.pointer;
if (size < 8) {
DRM_INFO("ATCS buffer is too small: %lu\n", size);
DRM_INFO("ATCS buffer is too small: %zu\n", size);
err = -EINVAL;
goto out;
}
Expand Down

0 comments on commit a187193

Please sign in to comment.