mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
intel-gpu-overlay: Improve error message for failure to open an output
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
be6e32b925
commit
263da26b9c
@ -903,7 +903,7 @@ int main(int argc, char **argv)
|
|||||||
if (ctx.surface == NULL)
|
if (ctx.surface == NULL)
|
||||||
ctx.surface = kms_overlay_create(&config, &ctx.width, &ctx.height);
|
ctx.surface = kms_overlay_create(&config, &ctx.width, &ctx.height);
|
||||||
if (ctx.surface == NULL)
|
if (ctx.surface == NULL)
|
||||||
return ENOMEM;
|
return ENXIO;
|
||||||
|
|
||||||
if (daemonize && daemon(0, 0))
|
if (daemonize && daemon(0, 0))
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user