[mutter] mutter: Add missing newline in error messages
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] mutter: Add missing newline in error messages
- Date: Fri, 3 Dec 2021 15:22:42 +0000 (UTC)
commit a6644adc2821ca00e6612b3772e40a9908dbd0a5
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Dec 3 15:47:12 2021 +0100
mutter: Add missing newline in error messages
It's using g_printerr() which isn't like g_message()/g_warning() and
friends that expect no newline in the end.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2133>
src/core/mutter.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/core/mutter.c b/src/core/mutter.c
index 8af146b4b6..51b9951b13 100644
--- a/src/core/mutter.c
+++ b/src/core/mutter.c
@@ -131,7 +131,7 @@ main (int argc, char **argv)
meta_context_add_option_entries (context, mutter_options, GETTEXT_PACKAGE);
if (!meta_context_configure (context, &argc, &argv, &error))
{
- g_printerr ("Failed to configure: %s", error->message);
+ g_printerr ("Failed to configure: %s\n", error->message);
return EXIT_FAILURE;
}
@@ -141,13 +141,13 @@ main (int argc, char **argv)
if (!meta_context_setup (context, &error))
{
- g_printerr ("Failed to setup: %s", error->message);
+ g_printerr ("Failed to setup: %s\n", error->message);
return EXIT_FAILURE;
}
if (!meta_context_start (context, &error))
{
- g_printerr ("Failed to start: %s", error->message);
+ g_printerr ("Failed to start: %s\n", error->message);
return EXIT_FAILURE;
}
@@ -163,7 +163,7 @@ main (int argc, char **argv)
G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH,
NULL, NULL, &command_pid, &error))
{
- g_printerr ("Failed to run the command: %s", error->message);
+ g_printerr ("Failed to run the command: %s\n", error->message);
return EXIT_FAILURE;
}
@@ -172,7 +172,7 @@ main (int argc, char **argv)
if (!meta_context_run_main_loop (context, &error))
{
- g_printerr ("Mutter terminated with a failure: %s", error->message);
+ g_printerr ("Mutter terminated with a failure: %s\n", error->message);
return EXIT_FAILURE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]