summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Green <mrg@NetBSD.org>2015-07-20 10:55:09 +0200
committerAdam Jackson <ajax@redhat.com>2015-07-27 12:38:22 -0400
commit2792ba7535dc9cc1c5bb2b37c1f862be36710a32 (patch)
treeeadacfef9c9245e64242159abd3819f95e90c247
parentb49c293e67cd88424ff40a2ca4e58b28528691d7 (diff)
downloadxorg-driver-xf86-video-vesa-2792ba7535dc9cc1c5bb2b37c1f862be36710a32.tar.gz
When debugging, print the VGAbase as well.
Just in case it ends up zero and causes a segmentation fault. Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
-rw-r--r--src/vesa.c5
1 files 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);
}