cli: ensure EOL is added at every error message

This commit is contained in:
Aleksander Morgado
2012-03-15 14:15:01 +01:00
parent 470d9b933e
commit d528a2211b
7 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}
+3 -3
View File
@@ -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);
}
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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);
}
}