summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-25 18:05:28 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-25 18:05:28 +0100
commitfebfd388235fbe566a505d7d83733305cf344850 (patch)
tree0348a848bea0a5c79cb7c5b3a63ee9e58361a957
parent2e2c448a77ab9dce4807b159708290cd7ad26b5c (diff)
intel: Use the correct errno value for reporting the drmSetVersion failure
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/intel_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_device.c b/src/intel_device.c
index cb3cb16a..74c9301b 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -156,7 +156,7 @@ int intel_get_device(ScrnInfoPtr scrn)
if (ret != 0) {
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
"[drm] failed to set drm interface version: %s [%d].\n",
- strerror(ret), ret);
+ strerror(errno), errno);
dev->open_count--;
return -1;
}