From: Eugeni Dodonov Date: Thu, 15 Sep 2011 18:12:02 +0000 (-0300) Subject: Change strerror(ret) to strerror(-ret). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72e0a9226ddf9282a0351e71c0272882473c836d;p=mesa.git Change strerror(ret) to strerror(-ret). --- 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);