summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2016-05-19 13:42:16 -0700
committerMark Janes <[email protected]>2016-05-20 05:58:18 -0700
commita2d28ddc016af5e819f4b8648a64893b331095b2 (patch)
treecdcb3491803e0d7d6f92b97836990083adc56c0f /src
parenteb384daae896970e8164cdc60015b8c48c12f851 (diff)
i965: Fix strerror error code sign
This trivial fix to error-handling corrects the sign of drm error codes before passing them to strerror. Identified by Coverity: CID1358581
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 1a0541a6c7c..076fa24cd6f 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -1111,7 +1111,7 @@ intel_detect_sseu(struct intel_screen *intelScreen)
err_out:
intelScreen->subslice_total = -1;
intelScreen->eu_total = -1;
- _mesa_warning(NULL, "Failed to query GPU properties (%s).\n", strerror(ret));
+ _mesa_warning(NULL, "Failed to query GPU properties (%s).\n", strerror(-ret));
}
static bool