[gnome-initial-setup] remove unnecessary '\n' termination character



commit 10b996b40bbffec298c54994ebd89f23638be0e9
Author: Alessandro Puccetti <alessandro kinvolk io>
Date:   Mon May 29 14:56:22 2017 +0200

    remove unnecessary '\n' termination character
    
    g_{error,warnings,debug} do not need '\n' termination character
    in the format string.

 .../pages/account/gis-account-page-local.c         |    6 +++---
 gnome-initial-setup/pages/goa/gis-goa-page.c       |    2 +-
 .../pages/keyboard/gis-keyboard-page.c             |    4 ++--
 .../pages/language/gis-language-page.c             |    4 ++--
 gnome-initial-setup/pages/password/pw-utils.c      |    4 ++--
 gnome-initial-setup/pages/region/gis-region-page.c |    4 ++--
 .../pages/summary/gis-summary-page.c               |    6 +++---
 7 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page-local.c 
b/gnome-initial-setup/pages/account/gis-account-page-local.c
index b74991f..6b5a5b3 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-local.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-local.c
@@ -181,12 +181,12 @@ prepopulate_account_page (GisAccountPageLocal *page)
         GError *error = NULL;
         if (!goa_oauth2_based_call_get_access_token_sync (oa2, &token, NULL, NULL, &error))
           {
-            g_warning ("Couldn't get oauth2 token: %s\n", error->message);
+            g_warning ("Couldn't get oauth2 token: %s", error->message);
             g_error_free (error);
           }
         else if (!get_profile_sync (token, &name, &picture, NULL, &error))
           {
-            g_warning ("Couldn't get profile information: %s\n", error->message);
+            g_warning ("Couldn't get profile information: %s", error->message);
             g_error_free (error);
           }
         /* FIXME: collect information from more than one account
@@ -211,7 +211,7 @@ prepopulate_account_page (GisAccountPageLocal *page)
     stream = g_file_read (file, NULL, &error);
     if (!stream)
       {
-        g_warning ("Failed to read picture: %s\n", error->message);
+        g_warning ("Failed to read picture: %s", error->message);
         g_error_free (error);
       }
     else
diff --git a/gnome-initial-setup/pages/goa/gis-goa-page.c b/gnome-initial-setup/pages/goa/gis-goa-page.c
index b4c698d..c518dfa 100644
--- a/gnome-initial-setup/pages/goa/gis-goa-page.c
+++ b/gnome-initial-setup/pages/goa/gis-goa-page.c
@@ -102,7 +102,7 @@ add_account_to_provider (ProviderWidget *provider_widget)
 
   if (error) {
     if (!g_error_matches (error, GOA_ERROR, GOA_ERROR_DIALOG_DISMISSED))
-      g_warning ("fart %s\n", error->message);
+      g_warning ("fart %s", error->message);
     goto out;
   }
 
diff --git a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c 
b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
index 604f9e0..91d9a25 100644
--- a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
+++ b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
@@ -172,7 +172,7 @@ change_locale_permission_acquired (GObject      *source,
        allowed = g_permission_acquire_finish (priv->permission, res, &error);
        if (error) {
                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-                       g_warning ("Failed to acquire permission: %s\n", error->message);
+                       g_warning ("Failed to acquire permission: %s", error->message);
                g_error_free (error);
                return;
        }
@@ -293,7 +293,7 @@ localed_proxy_ready (GObject      *source,
 
        if (!proxy) {
                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-                       g_warning ("Failed to contact localed: %s\n", error->message);
+                       g_warning ("Failed to contact localed: %s", error->message);
                g_error_free (error);
                return;
        }
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c 
b/gnome-initial-setup/pages/language/gis-language-page.c
index 3c807f8..ea94c82 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -89,7 +89,7 @@ change_locale_permission_acquired (GObject      *source,
   allowed = g_permission_acquire_finish (priv->permission, res, &error);
   if (error) {
       if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-        g_warning ("Failed to acquire permission: %s\n", error->message);
+        g_warning ("Failed to acquire permission: %s", error->message);
       g_error_free (error);
       return;
   }
@@ -175,7 +175,7 @@ localed_proxy_ready (GObject      *source,
 
   if (!proxy) {
       if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-        g_warning ("Failed to contact localed: %s\n", error->message);
+        g_warning ("Failed to contact localed: %s", error->message);
       g_error_free (error);
       return;
   }
diff --git a/gnome-initial-setup/pages/password/pw-utils.c b/gnome-initial-setup/pages/password/pw-utils.c
index 89ed05b..62656e9 100644
--- a/gnome-initial-setup/pages/password/pw-utils.c
+++ b/gnome-initial-setup/pages/password/pw-utils.c
@@ -37,7 +37,7 @@ get_pwq (void)
                 gchar *err = NULL;
                 settings = pwquality_default_settings ();
                 if (pwquality_read_config (settings, NULL, (gpointer)&err) < 0) {
-                        g_error ("failed to read pwquality configuration: %s\n", err);
+                        g_error ("failed to read pwquality configuration: %s", err);
                 }
         }
 
@@ -65,7 +65,7 @@ pw_generate (void)
         rv = pwquality_generate (get_pwq (), 0, &res);
 
         if (rv < 0) {
-                g_error ("Password generation failed: %s\n",
+                g_error ("Password generation failed: %s",
                          pwquality_strerror (NULL, 0, rv, NULL));
                 return NULL;
         }
diff --git a/gnome-initial-setup/pages/region/gis-region-page.c 
b/gnome-initial-setup/pages/region/gis-region-page.c
index b1a5f9b..6e90d57 100644
--- a/gnome-initial-setup/pages/region/gis-region-page.c
+++ b/gnome-initial-setup/pages/region/gis-region-page.c
@@ -84,7 +84,7 @@ change_locale_permission_acquired (GObject      *source,
   allowed = g_permission_acquire_finish (priv->permission, res, &error);
   if (error) {
       if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-        g_warning ("Failed to acquire permission: %s\n", error->message);
+        g_warning ("Failed to acquire permission: %s", error->message);
       g_error_free (error);
       return;
   }
@@ -161,7 +161,7 @@ localed_proxy_ready (GObject      *source,
 
   if (!proxy) {
       if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-        g_warning ("Failed to contact localed: %s\n", error->message);
+        g_warning ("Failed to contact localed: %s", error->message);
       g_error_free (error);
       return;
   }
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c 
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index 1c624d7..4261b92 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -99,7 +99,7 @@ on_info (GdmUserVerifier *user_verifier,
          const char      *info,
          GisSummaryPage  *page)
 {
-  g_debug ("PAM module info: %s\n", info);
+  g_debug ("PAM module info: %s", info);
 }
 
 static void
@@ -108,7 +108,7 @@ on_problem (GdmUserVerifier *user_verifier,
             const char      *problem,
             GisSummaryPage  *page)
 {
-  g_warning ("PAM module error: %s\n", problem);
+  g_warning ("PAM module error: %s", problem);
 }
 
 static void
@@ -129,7 +129,7 @@ on_secret_info_query (GdmUserVerifier *user_verifier,
   GisSummaryPagePrivate *priv = gis_summary_page_get_instance_private (page);
   gboolean should_send_password = priv->user_password != NULL;
 
-  g_debug ("PAM module secret info query: %s\n", question);
+  g_debug ("PAM module secret info query: %s", question);
   if (should_send_password) {
     g_debug ("sending password\n");
     gdm_user_verifier_call_answer_query (user_verifier,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]