diff options
author | Ikey Doherty <ikey@solus-project.com> | 2017-10-19 16:02:57 +0100 |
---|---|---|
committer | Ikey Doherty <ikey@solus-project.com> | 2017-10-19 16:04:11 +0100 |
commit | c8d7ae6bf8f2d0946f8955d1d0f8de3a18306e23 (patch) | |
tree | 4240cd6cf8fa28ff43b9d12bd2db898f41d6109b /test/glx_public_api_core.c | |
parent | 9dde80065fa09128885d61b0a3baaec780961880 (diff) | |
download | libepoxy-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/glx_public_api_core.c')
-rw-r--r-- | test/glx_public_api_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/glx_public_api_core.c b/test/glx_public_api_core.c index 29252ec..83b9689 100644 --- a/test/glx_public_api_core.c +++ b/test/glx_public_api_core.c @@ -51,8 +51,9 @@ test_has_extensions(void) } if (epoxy_has_gl_extension("GL_ARB_ham_sandwich")) { - fprintf(stderr, "epoxy implementation reported support for " - "GL_ARB_ham_sandwich, but it shouldn't\n"); + fputs("epoxy implementation reported support for " + "GL_ARB_ham_sandwich, but it shouldn't\n", + stderr); return false; } |