[libdmapsharing] Remove newlines from strings passed to g_warning and so on



commit 351af0268ac4ddde451013ce9bc6ed60ffb41282
Author: W. Michael Petullo <mike flyn org>
Date:   Thu Dec 13 19:08:59 2018 -0500

    Remove newlines from strings passed to g_warning and so on
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-av-share.c           | 6 +++---
 libdmapsharing/dmap-connection.c         | 8 ++++----
 libdmapsharing/dmap-image-share.c        | 2 +-
 libdmapsharing/dmap-mdns-avahi.c         | 2 +-
 libdmapsharing/dmap-mdns-browser-avahi.c | 2 +-
 libdmapsharing/dmap-share.c              | 4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/libdmapsharing/dmap-av-share.c b/libdmapsharing/dmap-av-share.c
index 6faab0e..b24ab23 100644
--- a/libdmapsharing/dmap-av-share.c
+++ b/libdmapsharing/dmap-av-share.c
@@ -789,7 +789,7 @@ _genre_tabulator (gpointer id, DmapRecord *record, GHashTable *ht)
 
                ok = g_hash_table_insert (ht, (gchar *) genre, NULL);
                if (!ok) {
-                       g_warning("error inserting %s\n", genre);
+                       g_warning("error inserting %s", genre);
                }
        }
 }
@@ -809,7 +809,7 @@ _artist_tabulator (gpointer id, DmapRecord * record, GHashTable * ht)
 
                ok = g_hash_table_insert (ht, (gchar *) artist, NULL);
                if (!ok) {
-                       g_warning("error inserting %s\n", artist);
+                       g_warning("error inserting %s", artist);
                }
        }
 }
@@ -829,7 +829,7 @@ _album_tabulator (gpointer id, DmapRecord * record, GHashTable * ht)
 
                ok = g_hash_table_insert (ht, (gchar *) album, NULL);
                if (!ok) {
-                       g_warning("error inserting %s\n", album);
+                       g_warning("error inserting %s", album);
                }
        }
 }
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index c3c767a..682849c 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -649,7 +649,7 @@ _actual_http_response_handler (DmapResponseData * data)
                soup_uri_to_string (soup_message_get_uri (data->message),
                                    FALSE);
 
-       g_debug ("Received response from %s: %d, %s\n",
+       g_debug ("Received response from %s: %d, %s",
                 message_path,
                 data->message->status_code, data->message->reason_phrase);
 
@@ -795,7 +795,7 @@ _actual_http_response_handler (DmapResponseData * data)
                                            data->connection);
                }
        } else {
-               g_debug ("Error getting %s: %d, %s\n",
+               g_debug ("Error getting %s: %d, %s",
                         message_path,
                         data->message->status_code,
                         data->message->reason_phrase);
@@ -1096,7 +1096,7 @@ _handle_database_info (DmapConnection * connection,
 
        n_databases = g_value_get_int (&(item->content));
        if (n_databases != 1) {
-               g_debug ("Host seems to have more than 1 database, how strange\n");
+               g_debug ("Host seems to have more than 1 database, how strange");
        }
 
        listing_node = dmap_structure_find_node (structure, DMAP_CC_MLCL);
@@ -1377,7 +1377,7 @@ _handle_playlist_entries (DmapConnection * connection,
                                             GINT_TO_POINTER
                                             (playlist_item_id));
                if (item_uri == NULL) {
-                       g_debug ("Entry %d in playlist %s doesn't exist in the database\n", playlist_item_id, 
playlist->name);
+                       g_debug ("Entry %d in playlist %s doesn't exist in the database", playlist_item_id, 
playlist->name);
                        continue;
                }
 
diff --git a/libdmapsharing/dmap-image-share.c b/libdmapsharing/dmap-image-share.c
index 00be757..883ce9e 100644
--- a/libdmapsharing/dmap-image-share.c
+++ b/libdmapsharing/dmap-image-share.c
@@ -369,7 +369,7 @@ _databases_browse_xxx (DmapShare * share,
                      const char *path,
                      GHashTable * query, SoupClientContext * context)
 {
-       g_warning ("Unhandled: %s\n", path);
+       g_warning ("Unhandled: %s", path);
 }
 
 static void
diff --git a/libdmapsharing/dmap-mdns-avahi.c b/libdmapsharing/dmap-mdns-avahi.c
index d180282..b39035d 100644
--- a/libdmapsharing/dmap-mdns-avahi.c
+++ b/libdmapsharing/dmap-mdns-avahi.c
@@ -61,7 +61,7 @@ _client_cb (AvahiClient * client, AvahiClientState state, gpointer data)
                break;
 
        case AVAHI_CLIENT_FAILURE:
-               g_warning ("Client failure: %s\n",
+               g_warning ("Client failure: %s",
                           avahi_strerror (avahi_client_errno (_client)));
                break;
 
diff --git a/libdmapsharing/dmap-mdns-browser-avahi.c b/libdmapsharing/dmap-mdns-browser-avahi.c
index 7f49ff8..6c0223b 100644
--- a/libdmapsharing/dmap-mdns-browser-avahi.c
+++ b/libdmapsharing/dmap-mdns-browser-avahi.c
@@ -300,7 +300,7 @@ _client_cb (AvahiClient * client,
        switch (state) {
 #ifdef HAVE_AVAHI_0_6
        case AVAHI_CLIENT_FAILURE:
-               g_warning ("Client failure: %s\n",
+               g_warning ("Client failure: %s",
                           avahi_strerror (avahi_client_errno (client)));
                break;
 #endif
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index 39acc9e..ad98a58 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -917,7 +917,7 @@ dmap_share_message_set_from_dmap_structure (DmapShare * share,
        resp = dmap_structure_serialize (structure, &length);
 
        if (resp == NULL) {
-               g_warning ("Serialize gave us null?\n");
+               g_warning ("Serialize gave us null?");
                return;
        }
 
@@ -2119,7 +2119,7 @@ dmap_share_databases (DmapShare * share,
                g_debug ("Assuming no artwork for requested group/album");
                soup_message_set_status (message, SOUP_STATUS_NOT_FOUND);
        } else {
-               g_warning ("Unhandled: %s\n", path);
+               g_warning ("Unhandled: %s", path);
        }
 
 done:


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