diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2007-04-13 02:23:42 +0200 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@aurora.(none)> | 2007-04-13 10:13:25 +0200 |
commit | c4e944182db3002101c330453ebb3f454637743e (patch) | |
tree | f130b916125629f8a117110428aa3f612e8fc884 /linux-core | |
parent | cc471a361fc7058df4fb8d15d9c9a8b5cdd3dd77 (diff) |
Added debug messages so we know which output we are dealing with
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_crtc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index ef025922..adea0309 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -134,13 +134,14 @@ void drm_crtc_probe_output_modes(struct drm_device *dev, int maxX, int maxY) // TODO list_for_each_entry(output, &dev->mode_config.output_list, head) { - + list_for_each_entry_safe(mode, t, &output->modes, head) drm_mode_remove(output, mode); output->status = (*output->funcs->detect)(output); if (output->status == output_status_disconnected) { + DRM_DEBUG("%s is disconnected\n", output->name); /* TODO set EDID to NULL */ continue; } @@ -164,8 +165,10 @@ void drm_crtc_probe_output_modes(struct drm_device *dev, int maxX, int maxY) drm_mode_prune_invalid(dev, &output->modes, TRUE); - if (list_empty(&output->modes)) + if (list_empty(&output->modes)) { + DRM_DEBUG("No valid modes found on %s\n", output->name); continue; + } drm_mode_sort(&output->modes); @@ -429,9 +432,12 @@ bool drm_output_rename(struct drm_output *output, const char *name) strncpy(output->name, name, DRM_OUTPUT_LEN); output->name[DRM_OUTPUT_LEN - 1] = 0; + + DRM_DEBUG("Changed name to %s\n", output->name); // drm_output_set_monitor(output); // if (drm_output_ignored(output)) // return FALSE; + return TRUE; } EXPORT_SYMBOL(drm_output_rename); |