Skip to contentSkip to conversation

drm: Don't spam dmesg whenver a video mode is changed.

PATCH New Eric Anholt 1 participant 1 message Jan 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Don't spam dmesg whenver a video mode is changed.

Not only are video mode changes normal events that probably don't deserve note in dmesg in general, drivers may also set video modes for output detection, leading to users being confused as to why their TV output is being turned on when they don't have one on their system.

---
 drivers/gpu/drm/drm_crtc_helper.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_crtc_helper.c +3 -2
index 4231d6d..35e8523 100644
@@ -702,8 +702,9 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
 		if (encoder->crtc != crtc)
 			continue;
 
-		DRM_INFO("%s: set mode %s %x\n", drm_get_encoder_name(encoder),
-			 mode->name, mode->base.id);
+		DRM_DEBUG_KMS("%s: set mode %s %x\n",
+			      drm_get_encoder_name(encoder),
+			      mode->name, mode->base.id);
 		encoder_funcs = encoder->helper_private;
 		encoder_funcs->mode_set(encoder, mode, adjusted_mode);
 	}
Signature · 10 lines
1.6.5.7


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--