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

Marvin Scholz epirat07 at gmail.com
Tue Jul 25 21:16:02 CEST 2017


---
 src/playlist/services_discovery.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index b3c6f23ff8..5fd09c4587 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: %s", p_input->psz_name ? p_input->psz_name : "(null)");
 
     playlist_Lock(playlist);
     if (sds->node == NULL)
@@ -83,6 +83,8 @@ 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: %s", p_input->psz_name ? p_input->psz_name : "(null)");
+
     PL_LOCK;
     item = playlist_ItemGetByInput(p_playlist, p_input);
     if (unlikely(item == NULL))
-- 
2.11.0 (Apple Git-81)



More information about the vlc-devel mailing list