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.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.c')
-rw-r--r-- | test/glx_public_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/glx_public_api.c b/test/glx_public_api.c index e38d260..aecdd2a 100644 --- a/test/glx_public_api.c +++ b/test/glx_public_api.c @@ -92,15 +92,15 @@ static bool test_glx_extension_supported(void) { if (!epoxy_has_glx_extension(dpy, 0, "GLX_ARB_get_proc_address")) { - fprintf(stderr, - "Incorrectly reported no support for GLX_ARB_get_proc_address " - "(should always be present in Linux ABI)\n"); + fputs("Incorrectly reported no support for GLX_ARB_get_proc_address " + "(should always be present in Linux ABI)\n", + stderr); return false; } if (epoxy_has_glx_extension(dpy, 0, "GLX_EXT_ham_sandwich")) { - fprintf(stderr, - "Incorrectly reported support for GLX_EXT_ham_sandwich\n"); + fputs("Incorrectly reported support for GLX_EXT_ham_sandwich\n", + stderr); return false; } |