summaryrefslogtreecommitdiff
path: root/test/egl_gl.c
diff options
context:
space:
mode:
authorIkey Doherty <ikey@solus-project.com>2017-10-19 16:02:57 +0100
committerIkey Doherty <ikey@solus-project.com>2017-10-19 16:04:11 +0100
commitc8d7ae6bf8f2d0946f8955d1d0f8de3a18306e23 (patch)
tree4240cd6cf8fa28ff43b9d12bd2db898f41d6109b /test/egl_gl.c
parent9dde80065fa09128885d61b0a3baaec780961880 (diff)
downloadlibepoxy-c8d7ae6bf8f2d0946f8955d1d0f8de3a18306e23.tar.gz
Only use printf family when passing arguments
This avoids any unnecessary allocations when simply passing static strings to be printed onto stderr, and uses the simpler fputs mechanism. Signed-off-by: Ikey Doherty <ikey@solus-project.com>
Diffstat (limited to 'test/egl_gl.c')
-rw-r--r--test/egl_gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/egl_gl.c b/test/egl_gl.c
index c3fb3c2..1acc19e 100644
--- a/test/egl_gl.c
+++ b/test/egl_gl.c
@@ -53,7 +53,7 @@ make_egl_current_and_test(EGLDisplay *dpy, EGLContext ctx)
eglMakeCurrent(dpy, NULL, NULL, ctx);
if (!epoxy_is_desktop_gl()) {
- fprintf(stderr, "Claimed to be desktop\n");
+ fputs("Claimed to be desktop\n", stderr);
pass = false;
}