put back some agp related allocation messages

This commit is contained in:
Alan Hourihane 2005-09-22 12:40:41 +00:00
parent 02566dff4a
commit 99793543c0

View File

@ -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;
}