diff --git a/src/rhd_vga.c b/src/rhd_vga.c index 12294ad..c744013 100644 --- a/src/rhd_vga.c +++ b/src/rhd_vga.c @@ -105,8 +105,13 @@ RHDVGASave(RHDPtr rhdPtr) VGA->FB = xcalloc(VGA->FBSize, 1); if (VGA->FB) - memcpy(VGA->FB, ((CARD8 *) rhdPtr->FbBase) + VGA->FBOffset, +#if 1 + ErrorF("%s: memcpy(%p, %p, %p)\n",VGA->FB, + ((CARD8 *) rhdPtr->FbBase) + VGA->FBOffset, VGA->FBSize); +#else + memcpy(VGA->FB, ((CARD8 *) rhdPtr->FbBase) + VGA->FBOffset, VGA->FBSize); +#endif else { xf86DrvMsg(rhdPtr->scrnIndex, X_WARNING, "%s: Failed to allocate" " space for storing the VGA framebuffer.\n", __func__);