Author: dumbbell
Date: Sun Nov  2 09:52:22 2014
New Revision: 273962
URL: https://svnweb.freebsd.org/changeset/base/273962

Log:
  drm: Lower priority of two messages related to invalid EDID
  
  Like in r259717, the prority goes from "error" to "debug" to avoid
  spamming logs when the connectors are polled.
  
  MFC after:    1 week

Modified:
  head/sys/dev/drm2/drm_edid.c
  head/sys/dev/drm2/radeon/radeon_connectors.c

Modified: head/sys/dev/drm2/drm_edid.c
==============================================================================
--- head/sys/dev/drm2/drm_edid.c        Sun Nov  2 09:37:45 2014        
(r273961)
+++ head/sys/dev/drm2/drm_edid.c        Sun Nov  2 09:52:22 2014        
(r273962)
@@ -171,7 +171,7 @@ drm_edid_block_valid(u8 *raw_edid)
        for (i = 0; i < EDID_LENGTH; i++)
                csum += raw_edid[i];
        if (csum) {
-               DRM_DEBUG("EDID checksum is invalid, remainder is %d\n", csum);
+               DRM_DEBUG_KMS("EDID checksum is invalid, remainder is %d\n", 
csum);
 
                /* allow CEA to slide through, switches mangle this */
                if (raw_edid[0] != 0x02)
@@ -366,7 +366,7 @@ drm_do_get_edid(struct drm_connector *co
        return block;
 
 carp:
-       DRM_ERROR("%s: EDID block %d invalid.\n",
+       DRM_DEBUG_KMS("%s: EDID block %d invalid.\n",
            drm_get_connector_name(connector), j);
 
 out:

Modified: head/sys/dev/drm2/radeon/radeon_connectors.c
==============================================================================
--- head/sys/dev/drm2/radeon/radeon_connectors.c        Sun Nov  2 09:37:45 
2014        (r273961)
+++ head/sys/dev/drm2/radeon/radeon_connectors.c        Sun Nov  2 09:52:22 
2014        (r273962)
@@ -748,7 +748,7 @@ radeon_vga_detect(struct drm_connector *
                radeon_connector->edid = drm_get_edid(&radeon_connector->base, 
radeon_connector->ddc_bus->adapter);
 
                if (!radeon_connector->edid) {
-                       DRM_ERROR("%s: probed a monitor but no|invalid EDID\n",
+                       DRM_DEBUG_KMS("%s: probed a monitor but no|invalid 
EDID\n",
                                        drm_get_connector_name(connector));
                        ret = connector_status_connected;
                } else {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to