diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-16 11:52:18 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-16 11:59:51 +0200 |
commit | 89bbc2ccb83c608dc95df7f073024f679b73786a (patch) | |
tree | 00487e9ee3e04b55a33096ff642ad48e01907341 /src | |
parent | 8905cf4670c260c332b1b8b84cc8cdb972937957 (diff) |
core: dump fatal initialization errors to stderr
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/mm-context.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -166,7 +166,7 @@ main (int argc, char *argv[]) mm_context_get_log_timestamps (), mm_context_get_log_relative_timestamps (), &error)) { - g_warning ("failed to set up logging: %s", error->message); + g_printerr ("error: failed to set up logging: %s\n", error->message); g_error_free (error); exit (1); } diff --git a/src/mm-context.c b/src/mm-context.c index cfabcbdb..25b3a79c 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -367,7 +367,7 @@ mm_context_init (gint argc, g_option_context_set_help_enabled (ctx, FALSE); if (!g_option_context_parse (ctx, &argc, &argv, &error)) { - g_warning ("error: %s", error->message); + g_printerr ("error: %s\n", error->message); g_error_free (error); exit (1); } @@ -396,7 +396,7 @@ mm_context_init (gint argc, /* Initial kernel events processing may only be used if autoscan is disabled */ #if defined WITH_UDEV || defined WITH_QRTR if (!no_auto_scan && initial_kernel_events) { - g_warning ("error: --initial-kernel-events must be used only if --no-auto-scan is also used"); + g_printerr ("error: --initial-kernel-events must be used only if --no-auto-scan is also used\n"); exit (1); } # if defined WITH_UDEV |