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_usefontbitmaps.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_usefontbitmaps.c')
-rw-r--r-- | test/wgl_usefontbitmaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/wgl_usefontbitmaps.c b/test/wgl_usefontbitmaps.c index fc58d8b..d54e1ee 100644 --- a/test/wgl_usefontbitmaps.c +++ b/test/wgl_usefontbitmaps.c @@ -36,11 +36,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; } |