[vlc-devel] [PATCH 2/3] service_discovery: Improve debug log messages

Marvin Scholz epirat07 at gmail.com
Tue Jul 25 18:48:31 CEST 2017


---
 src/playlist/services_discovery.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index b3c6f23ff8..d041c728b2 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -50,7 +50,7 @@ static void playlist_sd_item_added(services_discovery_t *sd,
     playlist_item_t *node;
     const char *longname = (sd->description != NULL) ? sd->description : "?";
 
-    msg_Dbg(sd, "adding %s", p_input->psz_name ? p_input->psz_name : "(null)");
+    msg_Dbg(sd, "adding sd item: %s", p_input->psz_name ? p_input->psz_name : "(null)");
 
     playlist_Lock(playlist);
     if (sds->node == NULL)
@@ -83,11 +83,13 @@ static void playlist_sd_item_removed(services_discovery_t *sd,
     playlist_t *p_playlist = (playlist_t *)sd->obj.parent;
     playlist_item_t *node, *item;
 
+    msg_Dbg(sd, "removing sd item: %s", p_input->psz_name ? p_input->psz_name : "(null)");
+
     PL_LOCK;
     item = playlist_ItemGetByInput(p_playlist, p_input);
     if (unlikely(item == NULL))
     {
-        msg_Err(sd, "removing item not added"); /* SD plugin bug */
+        msg_Err(sd, "removing sd item not added"); /* SD plugin bug */
         PL_UNLOCK;
         return;
     }
-- 
2.11.0 (Apple Git-81)



More information about the vlc-devel mailing list