diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-03-18 22:09:32 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-20 04:44:23 -0400 |
commit | 7df7c547c5aada8c6b9ee5ce14139e0ff5c66369 (patch) | |
tree | 068714c85558dccc1b67fd1caa3f629df8905c24 /drivers/gpu/drm/radeon/evergreen_cs.c | |
parent | 779923bc40e123976bb0bee07b1c6a47d2858137 (diff) |
drm/radeon/kms: make some DRM errors more informative
Signed-off-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen_cs.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen_cs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 8bf576a50c56..4674a688ad40 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c | |||
@@ -308,8 +308,8 @@ static int evergreen_surface_check(struct radeon_cs_parser *p, | |||
308 | case ARRAY_2D_TILED_THIN1: | 308 | case ARRAY_2D_TILED_THIN1: |
309 | return evergreen_surface_check_2d(p, surf, prefix); | 309 | return evergreen_surface_check_2d(p, surf, prefix); |
310 | default: | 310 | default: |
311 | dev_warn(p->dev, "%s:%d invalid array mode %d\n", | 311 | dev_warn(p->dev, "%s:%d %s invalid array mode %d\n", |
312 | __func__, __LINE__, surf->mode); | 312 | __func__, __LINE__, prefix, surf->mode); |
313 | return -EINVAL; | 313 | return -EINVAL; |
314 | } | 314 | } |
315 | return -EINVAL; | 315 | return -EINVAL; |
@@ -327,8 +327,8 @@ static int evergreen_surface_value_conv_check(struct radeon_cs_parser *p, | |||
327 | case ARRAY_1D_TILED_THIN1: | 327 | case ARRAY_1D_TILED_THIN1: |
328 | return 0; | 328 | return 0; |
329 | default: | 329 | default: |
330 | dev_warn(p->dev, "%s:%d invalid array mode %d\n", | 330 | dev_warn(p->dev, "%s:%d %s invalid array mode %d\n", |
331 | __func__, __LINE__, surf->mode); | 331 | __func__, __LINE__, prefix, surf->mode); |
332 | return -EINVAL; | 332 | return -EINVAL; |
333 | } | 333 | } |
334 | 334 | ||