Commit 7bd1012e authored by Matthias Clasen's avatar Matthias Clasen

tests: Strip newlines from g_warning and g_error

g_logv adds one for us already.
parent 664b1668
......@@ -386,7 +386,7 @@ gtk_offscreen_box_add (GtkContainer *container,
else if (!offscreen_box->child2)
gtk_offscreen_box_add2 (offscreen_box, widget);
else
g_warning ("GtkOffscreenBox cannot have more than 2 children\n");
g_warning ("GtkOffscreenBox cannot have more than 2 children");
}
void
......
......@@ -17,7 +17,7 @@ create_widget_factory_content (void)
"../demos/widget-factory/widget-factory.ui",
&error);
if (error != NULL)
g_error ("Failed to create widgets: %s\n", error->message);
g_error ("Failed to create widgets: %s", error->message);
result = GTK_WIDGET (gtk_builder_get_object (builder, "box1"));
g_object_ref (result);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment