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/wgl_core_and_exts.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/wgl_core_and_exts.c')
-rw-r--r-- | test/wgl_core_and_exts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/wgl_core_and_exts.c b/test/wgl_core_and_exts.c index 043a911..7d22acc 100644 --- a/test/wgl_core_and_exts.c +++ b/test/wgl_core_and_exts.c @@ -35,11 +35,11 @@ test_function(HDC hdc) ctx = wglCreateContext(hdc); if (!ctx) { - fprintf(stderr, "Failed to create wgl context\n"); + fputs("Failed to create wgl context\n", stderr); return 1; } if (!wglMakeCurrent(hdc, ctx)) { - fprintf(stderr, "Failed to make context current\n"); + fputs("Failed to make context current\n", stderr); return 1; } @@ -48,7 +48,7 @@ test_function(HDC hdc) val = 0; glGetIntegerv(GL_LIGHTING, &val); if (!val) { - fprintf(stderr, "Enabling GL_LIGHTING didn't stick.\n"); + fputs("Enabling GL_LIGHTING didn't stick.\n", stderr); pass = false; } |