summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-04-26 10:16:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-04-26 10:17:18 +0100
commit263da26b9c2ce33a4b6aac05acf97b21fe51d70f (patch)
tree1ec96da06e8e19cd27b73711b7d364e178b57bc2 /overlay
parentbe6e32b9254f2740da0a287caf2eaa1d745b77a3 (diff)
intel-gpu-overlay: Improve error message for failure to open an output
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay')
-rw-r--r--overlay/overlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 36154668..7759c2b7 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -903,7 +903,7 @@ int main(int argc, char **argv)
if (ctx.surface == NULL)
ctx.surface = kms_overlay_create(&config, &ctx.width, &ctx.height);
if (ctx.surface == NULL)
- return ENOMEM;
+ return ENXIO;
if (daemonize && daemon(0, 0))
return EINVAL;