Change strerror(ret) to strerror(-ret).
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Thu, 15 Sep 2011 18:12:02 +0000 (15:12 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Thu, 15 Sep 2011 18:12:02 +0000 (15:12 -0300)
src/mesa/drivers/dri/intel/intel_batchbuffer.c

index 98ae4e9d5faee112dd6bb915422db87418c745a5..bb14cc27123ef25eb75c8865742b8359b9e8e3df 100644 (file)
@@ -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);