[PATCH:xf86-video-vesa] When debugging, print the VGAbase as well.

Thomas Klausner wiz at NetBSD.org
Mon Jul 20 01:55:09 PDT 2015


From: Matthew Green <mrg at NetBSD.org>

Just in case it ends up zero and causes a segmentation fault.

Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 src/vesa.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/vesa.c b/src/vesa.c
index 564bb06..5b9ccb0 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -1304,9 +1304,10 @@ VESAMapVidMem(ScrnInfoPtr pScrn)
 #endif
 
     xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, DEBUG_VERB,
-		   "virtual address = %p,\n"
+		   "virtual address = %p, VGAbase = %p\n"
 		   "\tphysical address = 0x%lx, size = %ld\n",
-		   pVesa->base, pScrn->memPhysBase, pVesa->mapSize);
+		   pVesa->base, pVesa->VGAbase,
+		   pScrn->memPhysBase, pVesa->mapSize);
 
     return (pVesa->base != NULL);
 }
-- 
2.4.6



More information about the xorg-devel mailing list