Fix bad printf on TTM fence_wait failure.
authorEric Anholt <eric@anholt.net>
Thu, 16 Aug 2007 21:35:06 +0000 (14:35 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 16 Aug 2007 21:35:06 +0000 (14:35 -0700)
src/mesa/drivers/dri/common/dri_bufmgr_ttm.c

index 7f1e10fbc8b80d42a9a33eecba42b14fc96f7148..2d4f518b315978d85799be5f3f2c53582f6df0b6 100644 (file)
@@ -339,7 +339,7 @@ dri_ttm_fence_wait(dri_fence *fence)
    _glthread_UNLOCK_MUTEX(bufmgr_ttm->mutex);
    if (ret != 0) {
       _mesa_printf("%s:%d: Error %d waiting for fence %s.\n",
-                  __FILE__, __LINE__, fence_ttm->name);
+                  __FILE__, __LINE__, ret, fence_ttm->name);
       abort();
    }
 }