diff options
author | Eric Anholt <[email protected]> | 2007-09-20 09:20:48 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2007-09-20 09:20:48 -0700 |
commit | b7fd06a871893d8ed482d16207136e324bb7d85c (patch) | |
tree | 2511c163ee204e2ff0bbf72880dc6ccc49ebf32b | |
parent | 4f1c9f7e510122b32c82ee9adbdb4987dae27afe (diff) |
Fix flipped sign to strerror.
-rw-r--r-- | src/mesa/drivers/dri/common/dri_bufmgr_ttm.c | 4 |
1 files 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; } |