From: Samuel Pitoiset Date: Mon, 29 Oct 2018 11:23:06 +0000 (+0100) Subject: drm/amdgpu: print an error when the parser can't be initialized X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e0519696cc31c111f11e7c67bd663dbb88d6673f;p=linux.git drm/amdgpu: print an error when the parser can't be initialized Similar to other error messages, might help for tracking down issues. Signed-off-by: Samuel Pitoiset Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 5d768f95de24f..fd12e9162f3c7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -1284,7 +1284,7 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) r = amdgpu_cs_parser_init(&parser, data); if (r) { - DRM_ERROR("Failed to initialize parser !\n"); + DRM_ERROR("Failed to initialize parser %d!\n", r); goto out; }