Skip to content

Commit c812460

Browse files
bjdooks-ctalexdeucher
authored andcommitted
drm/radeon: fix signed v unsigned print formats
Fix several places where %ld or %d has been used in place of %lu or %u. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2f2a72d commit c812460

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/radeon/radeon_gem.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
110110
*/
111111
max_size = rdev->mc.gtt_size - rdev->gart_pin_size;
112112
if (size > max_size) {
113-
DRM_DEBUG("Allocation size %ldMb bigger than %ldMb limit\n",
113+
DRM_DEBUG("Allocation size %luMb bigger than %luMb limit\n",
114114
size >> 20, max_size >> 20);
115115
return -ENOMEM;
116116
}
@@ -560,7 +560,7 @@ int radeon_gem_set_tiling_ioctl(struct drm_device *dev, void *data,
560560
struct radeon_bo *robj;
561561
int r = 0;
562562

563-
DRM_DEBUG("%d \n", args->handle);
563+
DRM_DEBUG("%u \n", args->handle);
564564
gobj = drm_gem_object_lookup(filp, args->handle);
565565
if (gobj == NULL)
566566
return -ENOENT;
@@ -886,7 +886,7 @@ static int radeon_debugfs_gem_info_show(struct seq_file *m, void *unused)
886886
placement = " CPU";
887887
break;
888888
}
889-
seq_printf(m, "bo[0x%08x] %8ldkB %8ldMB %s pid %8ld\n",
889+
seq_printf(m, "bo[0x%08x] %8lukB %8luMB %s pid %8lu\n",
890890
i, radeon_bo_size(rbo) >> 10, radeon_bo_size(rbo) >> 20,
891891
placement, (unsigned long)rbo->pid);
892892
i++;

0 commit comments

Comments
 (0)