summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-09 15:53:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-10 12:05:17 +0000
commitb1694c8ea5c0f2ce1ded2ab25aecfde80da16346 (patch)
tree37adb3a718e6bf3c47d43d2dfbc962b91ccabaeb /src/sna/sna_driver.c
parentbfabdb7ebf5e491da1e74f8b362f9c2f0b6f1ac5 (diff)
sna: Include the deferred hotplug uevent propagation in DBG
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 58037c0a..3f7a9bf9 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -709,7 +709,8 @@ sna_handle_uevents(int fd, void *closure)
if (memcmp(&s.st_rdev, &udev_devnum, sizeof (dev_t)) == 0 &&
hotplug && atoi(hotplug) == 1) {
- DBG(("%s: hotplug event\n", __FUNCTION__));
+ DBG(("%s: hotplug event (vtSema?=%d)\n",
+ __FUNCTION__, sna->scrn->vtSema));
if (sna->scrn->vtSema) {
sna_mode_update(sna);
RRGetInfo(xf86ScrnToScreen(scrn), TRUE);
@@ -1103,6 +1104,8 @@ static Bool sna_enter_vt(VT_FUNC_ARGS_DECL)
return FALSE;
if (sna->flags & SNA_REPROBE) {
+ DBG(("%s: reporting deferred hotplug event\n",
+ __FUNCTION__));
RRGetInfo(xf86ScrnToScreen(scrn), TRUE);
sna->flags &= ~SNA_REPROBE;
}