Make meta_* logging utilities not require line break

Unlike g_* logging utilities, the meta_* counterparts behave like odd
printf() functions. Lets change that so they fit better into how logging
is done everywhere else.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1466
This commit is contained in:
Jonas Ådahl
2020-10-02 17:47:22 +02:00
parent dbe44f3a83
commit 313e3e771c
50 changed files with 596 additions and 579 deletions

View File

@ -74,7 +74,7 @@ restart_helper_read_line_callback (GObject *source_object,
&length, &error);
if (line == NULL)
{
meta_warning ("Failed to read output from restart helper%s%s\n",
meta_warning ("Failed to read output from restart helper%s%s",
error ? ": " : NULL,
error ? error->message : NULL);
}
@ -150,7 +150,7 @@ meta_restart (const char *message)
NULL, /* standard_error */
&error))
{
meta_warning ("Failed to start restart helper: %s\n", error->message);
meta_warning ("Failed to start restart helper: %s", error->message);
goto error;
}
@ -163,7 +163,7 @@ meta_restart (const char *message)
&error);
if (error != NULL)
{
meta_warning ("Failed to read from restart helper: %s\n", error->message);
meta_warning ("Failed to read from restart helper: %s", error->message);
g_object_unref (data_stream);
goto error;
}