nouveau: some extra debug output
authorBen Skeggs <darktama@iinet.net.au>
Thu, 25 Jan 2007 00:56:45 +0000 (11:56 +1100)
committerBen Skeggs <darktama@iinet.net.au>
Thu, 25 Jan 2007 00:56:45 +0000 (11:56 +1100)
src/mesa/drivers/dri/nouveau/nouveau_screen.c

index 781ba0113fc8e9cb7e9a53f03c32ad1b88f20502..2d14a9d84d0efaddff37bd5053836a6bc559ebaa 100644 (file)
@@ -339,8 +339,11 @@ void * __driCreateNewScreen_20050727( __DRInativeDisplay *dpy, int scrn, __DRIsc
        }
 
        // temporary lock step versioning
-       if (drm_expected.patch!=drm_version->patch)
+       if (drm_expected.patch!=drm_version->patch) {
+               __driUtilMessage("%s: wrong DRM version, expected %d, got %d\n",
+                               drm_expected.patch, drm_version->patch);
                return NULL;
+       }
 
        psp = __driUtilCreateNewScreen(dpy, scrn, psc, NULL,
                                       ddx_version, dri_version, drm_version,