From b1694c8ea5c0f2ce1ded2ab25aecfde80da16346 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 9 Jan 2014 15:53:42 +0000 Subject: sna: Include the deferred hotplug uevent propagation in DBG Signed-off-by: Chris Wilson --- src/sna/sna_driver.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3