[PATCH] drm/radeon/kms: fix warning on 32-bit in atomic fence printing

Jerome Glisse j.glisse at gmail.com
Wed May 9 09:57:46 PDT 2012


On Wed, May 9, 2012 at 12:28 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> /ssd/git/drm-core-next/drivers/gpu/drm/radeon/radeon_fence.c: In function ‘radeon_debugfs_fence_info’:
> /ssd/git/drm-core-next/drivers/gpu/drm/radeon/radeon_fence.c:606:7: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long int’ [-Wformat]
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>

Reviewed-by: Jerome Glisse <jglisse at redhat.com>

> ---
>  drivers/gpu/drm/radeon/radeon_fence.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c
> index 48ec5e3..11f5f40 100644
> --- a/drivers/gpu/drm/radeon/radeon_fence.c
> +++ b/drivers/gpu/drm/radeon/radeon_fence.c
> @@ -602,8 +602,8 @@ static int radeon_debugfs_fence_info(struct seq_file *m, void *data)
>                        continue;
>
>                seq_printf(m, "--- ring %d ---\n", i);
> -               seq_printf(m, "Last signaled fence 0x%016lx\n",
> -                          atomic64_read(&rdev->fence_drv[i].last_seq));
> +               seq_printf(m, "Last signaled fence 0x%016llx\n",
> +                          (unsigned long long)atomic64_read(&rdev->fence_drv[i].last_seq));
>                seq_printf(m, "Last emitted  0x%016llx\n",
>                           rdev->fence_drv[i].seq);
>        }
> --
> 1.7.7.6
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list