drm/amdgpu: print an error when the parser can't be initialized
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 29 Oct 2018 11:23:06 +0000 (12:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:28 +0000 (14:21 -0500)
Similar to other error messages, might help for tracking down
issues.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index 5d768f95de24f5175b294386858ecad0d0d6c469..fd12e9162f3c79aca16c5f89ecfb0e972313f7bd 100644 (file)
@@ -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;
        }