drm/kms: reduce some messages to debug level
Subsystems (2)
Dave Airlie
maintainerPATCH 1/1 drm/kms: reduce some messages to debug level
From: Dave Airlie <[email protected]>
These can all be trigged from userspace if you pass the right values.
Signed-off-by Dave Airlie <[email protected]>
--- drivers/gpu/drm/drm_crtc.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/drm_crtc.c +5 -5
@@ -2062,7 +2062,7 @@ int drm_mode_addfb(struct drm_device *dev, fb = dev->mode_config.funcs->fb_create (dev, file_priv, &r);if (IS_ERR (fb)) { -DRM_ERROR ("could not create framebuffer\n" ); +DRM_DEBUG_KMS ("could not create framebuffer\n" ); ret =PTR_ERR (fb); goto out; }
@@ -2174,19 +2174,19 @@ int drm_mode_addfb2(struct drm_device *dev,return -EINVAL ;if ((config->min_width > r->width) || (r->width > config->max_width)) { -DRM_ERROR ("bad framebuffer width %d, should be >= %d && <= %d\n" , +DRM_DEBUG_KMS ("bad framebuffer width %d, should be >= %d && <= %d\n" , r->width, config->min_width, config->max_width);return -EINVAL ; }if ((config->min_height > r->height) || (r->height > config->max_height)) { -DRM_ERROR ("bad framebuffer height %d, should be >= %d && <= %d\n" , +DRM_DEBUG_KMS ("bad framebuffer height %d, should be >= %d && <= %d\n" , r->height, config->min_height, config->max_height);return -EINVAL ; } ret =format_check (r);if (ret) { -DRM_ERROR ("bad framebuffer format 0x%08x\n" , r->pixel_format); +DRM_DEBUG_KMS ("bad framebuffer format 0x%08x\n" , r->pixel_format);return ret; }
@@ -2194,7 +2194,7 @@ int drm_mode_addfb2(struct drm_device *dev, fb = dev->mode_config.funcs->fb_create (dev, file_priv, r);if (IS_ERR (fb)) { -DRM_ERROR ("could not create framebuffer\n" ); +DRM_DEBUG_KMS ("could not create framebuffer\n" ); ret =PTR_ERR (fb); goto out; }
Signature · 1 line
1.7.7.6
Quoted 5 lines · Dave Airlie
From: Dave Airlie <[email protected]>
These can all be trigged from userspace if you pass the right values.
Signed-off-by Dave Airlie <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 56 lines
---
drivers/gpu/drm/drm_crtc.c | 10 +++++-----1 files changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/drm_crtc.c +5
-6@@ -2062,7 +2062,7 @@ int drm_mode_addfb(struct drm_device *dev, fb = dev->mode_config.funcs->fb_create(dev, file_priv, &r); if (IS_ERR(fb)) { - DRM_ERROR("could not create framebuffer\n"); + DRM_DEBUG_KMS("could not create framebuffer\n"); ret = PTR_ERR(fb); goto out; }@@ -2174,19 +2174,19 @@ int drm_mode_addfb2(struct drm_device *dev, return -EINVAL; if ((config->min_width > r->width) || (r->width > config->max_width)) { - DRM_ERROR("bad framebuffer width %d, should be >= %d && <= %d\n", + DRM_DEBUG_KMS("bad framebuffer width %d, should be >= %d && <= %d\n", r->width, config->min_width, config->max_width); return -EINVAL; } if ((config->min_height > r->height) || (r->height > config->max_height)) { - DRM_ERROR("bad framebuffer height %d, should be >= %d && <= %d\n", + DRM_DEBUG_KMS("bad framebuffer height %d, should be >= %d && <= %d\n", r->height, config->min_height, config->max_height); return -EINVAL; } ret = format_check(r); if (ret) { - DRM_ERROR("bad framebuffer format 0x%08x\n", r->pixel_format); + DRM_DEBUG_KMS("bad framebuffer format 0x%08x\n", r->pixel_format); return ret; }@@ -2194,7 +2194,7 @@ int drm_mode_addfb2(struct drm_device *dev, fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); if (IS_ERR(fb)) { - DRM_ERROR("could not create framebuffer\n"); + DRM_DEBUG_KMS("could not create framebuffer\n"); ret = PTR_ERR(fb); goto out; } --1.7.7.6
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel