cli: ensure EOL is added at every error message
This commit is contained in:
@@ -164,7 +164,7 @@ ensure_modem_3gpp (void)
|
||||
if (ctx->modem_3gpp)
|
||||
return;
|
||||
|
||||
g_printerr ("error: modem has no 3GPP capabilities");
|
||||
g_printerr ("error: modem has no 3GPP capabilities\n");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ ensure_modem_3gpp_ussd (void)
|
||||
if (ctx->modem_3gpp_ussd)
|
||||
return;
|
||||
|
||||
g_printerr ("error: modem has no USSD capabilities");
|
||||
g_printerr ("error: modem has no USSD capabilities\n");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ ensure_modem_cdma (void)
|
||||
if (ctx->modem_cdma)
|
||||
return;
|
||||
|
||||
g_printerr ("error: modem has no CDMA capabilities");
|
||||
g_printerr ("error: modem has no CDMA capabilities\n");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ ensure_modem_location (void)
|
||||
if (ctx->modem_location)
|
||||
return;
|
||||
|
||||
g_printerr ("error: modem has no location capabilities");
|
||||
g_printerr ("error: modem has no location capabilities\n");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ ensure_modem_messaging (void)
|
||||
if (ctx->modem_messaging)
|
||||
return;
|
||||
|
||||
g_printerr ("error: modem has no messaging capabilities");
|
||||
g_printerr ("error: modem has no messaging capabilities\n");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ get_modem_ready (GObject *source,
|
||||
|
||||
properties = mm_sms_properties_new_from_string (create_str, &error);
|
||||
if (!properties) {
|
||||
g_printerr ("Error parsing properties string: '%s'", error->message);
|
||||
g_printerr ("Error parsing properties string: '%s'\n", error->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@@ -342,7 +342,7 @@ mmcli_modem_messaging_run_synchronous (GDBusConnection *connection)
|
||||
|
||||
properties = mm_sms_properties_new_from_string (create_str, &error);
|
||||
if (!properties) {
|
||||
g_printerr ("Error parsing properties string: '%s'", error->message);
|
||||
g_printerr ("Error parsing properties string: '%s'\n", error->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ get_modem_ready (GObject *source,
|
||||
|
||||
properties = mm_modem_simple_connect_properties_new_from_string (connect_str, &error);
|
||||
if (!properties) {
|
||||
g_printerr ("Error parsing connect string: '%s'", error->message);
|
||||
g_printerr ("Error parsing connect string: '%s'\n", error->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -842,7 +842,7 @@ get_modem_ready (GObject *source,
|
||||
|
||||
properties = mm_bearer_properties_new_from_string (create_bearer_str, &error);
|
||||
if (!properties) {
|
||||
g_printerr ("Error parsing properties string: '%s'", error->message);
|
||||
g_printerr ("Error parsing properties string: '%s'\n", error->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@@ -1001,7 +1001,7 @@ mmcli_modem_run_synchronous (GDBusConnection *connection)
|
||||
|
||||
properties = mm_bearer_properties_new_from_string (create_bearer_str, &error);
|
||||
if (!properties) {
|
||||
g_printerr ("Error parsing properties string: '%s'", error->message);
|
||||
g_printerr ("Error parsing properties string: '%s'\n", error->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -69,7 +69,7 @@ signals_handler (int signum)
|
||||
/* Ignore consecutive requests of cancellation */
|
||||
if (!g_cancellable_is_cancelled (cancellable)) {
|
||||
g_printerr ("%s\n",
|
||||
"cancelling the operation...");
|
||||
"cancelling the operation...\n");
|
||||
g_cancellable_cancel (cancellable);
|
||||
}
|
||||
return;
|
||||
@@ -78,7 +78,7 @@ signals_handler (int signum)
|
||||
if (loop &&
|
||||
g_main_loop_is_running (loop)) {
|
||||
g_printerr ("%s\n",
|
||||
"cancelling the main loop...");
|
||||
"cancelling the main loop...\n");
|
||||
g_main_loop_quit (loop);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user