diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-18 14:37:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-18 14:37:19 +0100 |
commit | bfacb9d8dcd0fd590af3cb9fddc81904ef1e273b (patch) | |
tree | 0254ee82c0ce72a51fce5a614644d4b1b2813426 /src/sna/sna_driver.c | |
parent | 02f184e0ef428d9d80fecbaa438a7cbd87c18a91 (diff) |
sna: Add some DBG warnings for early PreInit failures
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.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index f903adf2..784ab608 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -558,15 +558,19 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int probe) return FALSE; pEnt = xf86GetEntityInfo(scrn->entityList[0]); - if (pEnt == NULL) + if (pEnt == NULL) { + ERR(("%s: no EntityInfo found for scrn\n", __FUNCTION__)); return FALSE; + } if (pEnt->location.type != BUS_PCI #ifdef XSERVER_PLATFORM_BUS && pEnt->location.type != BUS_PLATFORM #endif - ) + ) { + ERR(("%s: invalid EntityInfo found for scrn, location=%d\n", __FUNCTION__, pEnt->location.type)); return FALSE; + } if (probe & PROBE_DETECT) return TRUE; @@ -1183,7 +1187,7 @@ static void sna_free_screen(FREE_SCREEN_ARGS_DECL) SCRN_INFO_PTR(arg); struct sna *sna = to_sna(scrn); - DBG(("%s\n", __FUNCTION__)); + DBG(("%s [scrn=%p, sna=%p]\n", __FUNCTION__, scrn, sna)); if ((uintptr_t)sna & 3) return; |