summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-11-22 16:49:57 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-11-22 16:51:18 +0000
commit6781575f734f05547d7d5ceef4116fc157bba44d (patch)
tree4f196bbec151dcbe94f9107b531705f720cef15b /src
parente065324661ad08b3b359136f48090232f6138959 (diff)
Be a little more verbose when rejecting modes.
Diffstat (limited to 'src')
-rw-r--r--src/i830_modes.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c
index 7d145198..002c0048 100644
--- a/src/i830_modes.c
+++ b/src/i830_modes.c
@@ -394,7 +394,6 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
!I830CheckModeSupport(pScrn, mode->XResolution, mode->YResolution, id))
modeOK = FALSE;
-
/*
* Check if there's a valid monitor mode that this one can be matched
* up with from the 'specified' modes list.
@@ -410,6 +409,9 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
if (status == MODE_OK) {
modeOK = TRUE;
break;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Not using mode \"%s\" (%s)\n", p->name,
+ xf86ModeStatusToString(status));
}
}
if (p) {
@@ -442,6 +444,9 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
newMode = p;
}
modeOK = TRUE;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Not using mode \"%s\" (%s)\n", p->name,
+ xf86ModeStatusToString(status));
}
}
if (newMode) {
@@ -487,8 +492,11 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
modeOK = FALSE;
} else
modeOK = TRUE;
- } else
+ } else {
modeOK = FALSE;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Not using mode \"%s\" (%s)\n", pMode->name,
+ xf86ModeStatusToString(status));
+ }
pMode->status = status;
} else {
modeOK = FALSE;