Re: [PATCH] drm/amdgpu: Fix inconsistent of format with argument type in amdgpu_xgmi.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied.  Thanks!

Alex

On Fri, Oct 9, 2020 at 8:51 AM Ye Bin <yebin10@xxxxxxxxxx> wrote:
>
> Fix follow warning:
> [drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:249]: (warning) %d in format
> string (no. 1) requires 'int' but the argument type is 'unsigned int'.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Ye Bin <yebin10@xxxxxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> index 1162913c8bf4..54c358e71f9a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> @@ -246,7 +246,7 @@ static ssize_t amdgpu_xgmi_show_error(struct device *dev,
>
>         adev->df.funcs->set_fica(adev, ficaa_pie_status_in, 0, 0);
>
> -       return snprintf(buf, PAGE_SIZE, "%d\n", error_count);
> +       return snprintf(buf, PAGE_SIZE, "%u\n", error_count);
>  }
>
>
> --
> 2.16.2.dirty
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux