diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-02-28 12:21:29 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-02-28 12:23:12 -0500 |
commit | 7bd1012e51e47c939572a584fbfc65be45596168 (patch) | |
tree | 40f7d13f996e2d928c29fc5ec2acfa25d7a0b797 /tests/testglarea.c | |
parent | 664b16683842a2e0b1bf83c19a931ce110ccb743 (diff) | |
download | gtk+-7bd1012e51e47c939572a584fbfc65be45596168.tar.gz |
tests: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Diffstat (limited to 'tests/testglarea.c')
-rw-r--r-- | tests/testglarea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testglarea.c b/tests/testglarea.c index 310a244b4e..764e2311b3 100644 --- a/tests/testglarea.c +++ b/tests/testglarea.c @@ -66,7 +66,7 @@ create_shader (int type, const char *src) buffer = g_malloc (log_len + 1); glGetShaderInfoLog (shader, log_len, NULL, buffer); - g_warning ("Compile failure in %s shader:\n%s\n", + g_warning ("Compile failure in %s shader:\n%s", type == GL_VERTEX_SHADER ? "vertex" : "fragment", buffer); @@ -158,7 +158,7 @@ init_shaders (const char *vertex_shader_code, buffer = g_malloc (log_len + 1); glGetProgramInfoLog (program, log_len, NULL, buffer); - g_warning ("Linking failure:\n%s\n", buffer); + g_warning ("Linking failure:\n%s", buffer); g_free (buffer); |