From 72e0a9226ddf9282a0351e71c0272882473c836d Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Thu, 15 Sep 2011 15:12:02 -0300 Subject: [PATCH] Change strerror(ret) to strerror(-ret). --- src/mesa/drivers/dri/intel/intel_batchbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index 98ae4e9d5fa..bb14cc27123 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -138,7 +138,7 @@ do_flush_locked(struct intel_context *intel) } if (ret != 0) { - fprintf(stderr, "intel_do_flush_locked failed: %s\n", strerror(ret)); + fprintf(stderr, "intel_do_flush_locked failed: %s\n", strerror(-ret)); exit(1); } intel->vtbl.new_batch(intel); -- 2.30.2