From b7fd06a871893d8ed482d16207136e324bb7d85c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 20 Sep 2007 09:20:48 -0700 Subject: [PATCH] Fix flipped sign to strerror. --- src/mesa/drivers/dri/common/dri_bufmgr_ttm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c index 8c36502b855..e264048b70b 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c @@ -270,7 +270,7 @@ dri_ttm_validate(dri_bo *buf, unsigned int flags) /* XXX: add to fence list for sanity checking */ } else { fprintf(stderr, "failed to validate buffer (%s): %s\n", - ttm_buf->name, strerror(err)); + ttm_buf->name, strerror(-err)); } buf->offset = ttm_buf->drm_bo.offset; @@ -301,7 +301,7 @@ dri_ttm_fence_validated(dri_bufmgr *bufmgr, const char *name, fence_ttm->fence.bufmgr = bufmgr; ret = drmFenceBuffers(bufmgr_ttm->fd, type, &fence_ttm->drm_fence); if (ret) { - fprintf(stderr, "failed to fence (%s): %s\n", name, strerror(ret)); + fprintf(stderr, "failed to fence (%s): %s\n", name, strerror(-ret)); free(fence_ttm); return NULL; } -- 2.30.2