summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2018-11-01 09:50:20 -0700
committerVinson Lee <vlee@freedesktop.org>2018-11-01 19:51:49 -0700
commit919d5264edbb893ce48a1f853c317e5f26c740dc (patch)
tree34a4fd3d0dbf9b80dc92fd30d408d53028c5bc65
parentd013d3047257dd22bd7478544fd54155217166bf (diff)
egl_ext_device_drm: Fix format warning.
egl_ext_device_drm.c: In function ‘main’: egl_ext_device_drm.c:165:52: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=] printf("Make sure you have permissions to open %s\n"); ~^ Fixes: 039bbe4a61d1 ("egl_ext_device_drm: don't fail the test if open("/dev/dri/cardX") errors") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
-rw-r--r--tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c b/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c
index 954ac60c8..9fced9b35 100644
--- a/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c
+++ b/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c
@@ -162,7 +162,8 @@ main(void)
if (fd < 0) {
printf("Failed to open drm device file %s: %s\n",
devstring, strerror(errno));
- printf("Make sure you have permissions to open %s\n");
+ printf("Make sure you have permissions to open %s\n",
+ devstring);
result = PIGLIT_WARN;
eglTerminate(dpy1);
continue;