drm: Include the connector name in the output_poll_execute() debug message
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Dec 2010 22:49:28 +0000 (22:49 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 21 Dec 2010 23:10:12 +0000 (09:10 +1000)
Always useful to know just which connector was polled and had its
status updated.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c

index 7ca5935..2d4e17a 100644 (file)
@@ -874,7 +874,10 @@ static void output_poll_execute(struct work_struct *work)
                        continue;
 
                connector->status = connector->funcs->detect(connector, false);
-               DRM_DEBUG_KMS("connector status updated to %d\n", connector->status);
+               DRM_DEBUG_KMS("[CONNECTOR:%d:%s] status updated from %d to %d\n",
+                             connector->base.id,
+                             drm_get_connector_name(connector),
+                             old_status, connector->status);
                if (old_status != connector->status)
                        changed = true;
        }