[libdmapsharing] Debug message when request asks for metadata type that is not known Signed-off-by: W. Michael Petull



commit 7f0fbc2a65d371bd259103b61475776268005dd8
Author: W. Michael Petullo <mike flyn org>
Date:   Mon Sep 6 18:38:33 2010 -0500

    Debug message when request asks for metadata type that is not known
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-share.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index b2ed875..1848478 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -1083,12 +1083,17 @@ _dmap_share_parse_meta_str (const char *attrs, struct DMAPMetaDataMap *mdm)
 
 		for (i = 0; attrsv[i]; i++) {
 			guint j;
+			gboolean found = FALSE;
 
 			for (j = 0; mdm[j].tag; j++) {
 				if (strcmp (mdm[j].tag, attrsv[i]) == 0) {
 					bits |= (((bitwise) 1) << mdm[j].md);
+					found = TRUE;
 				}
 			}
+
+			if (found == FALSE)
+				g_debug ("Unknown meta request: %s", attrsv[i]);
 		}
 		g_strfreev (attrsv);
 	}	



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