From 99793543c0fcfd4d699549fcc2bf0ed12aed6a19 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 22 Sep 2005 12:40:41 +0000 Subject: [PATCH] put back some agp related allocation messages --- hw/xfree86/os-support/linux/lnx_agp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xfree86/os-support/linux/lnx_agp.c b/hw/xfree86/os-support/linux/lnx_agp.c index 97ed2155a..a3a32b7e5 100644 --- a/hw/xfree86/os-support/linux/lnx_agp.c +++ b/hw/xfree86/os-support/linux/lnx_agp.c @@ -139,6 +139,8 @@ xf86GetAGPInfo(int screenNum) return NULL; } + memset((char*)&agpinf, 0, sizeof(agpinf)); + if (ioctl(gartFd, AGPIOC_INFO, &agpinf) != 0) { xf86DrvMsg(screenNum, X_ERROR, "xf86GetAGPInfo: AGPIOC_INFO failed (%s)\n", @@ -154,6 +156,8 @@ xf86GetAGPInfo(int screenNum) info->systemPages = agpinf.pg_system; info->usedPages = agpinf.pg_used; + xf86DrvMsg(screenNum, X_INFO, "Kernel reported %d total, %d used\n", agpinf.pg_total, agpinf.pg_used); + return info; }