From 0f2d62321663d3f8942bf4cfba31c8dfa17efb61 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 19 Mar 2022 02:11:57 -0400 Subject: [PATCH] tagcache add logging option for clause matching #2 Change-Id: Ideaa89a6fb227ecc8a4a107dced98f85b6b40a4f --- apps/tagcache.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index 12d8776da2..cf0d73f0fb 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -57,6 +57,7 @@ /*#define LOGF_ENABLE*/ /*#define LOGF_CLAUSES define to enable logf clause matching (LOGF_ENABLE req'd) */ + #include #include #include @@ -140,10 +141,10 @@ static const char *tags_str[] = { "artist", "album", "genre", "title", "filename", "composer", "comment", "albumartist", "grouping", "year", "discnumber", "tracknumber", "canonicalartist", "bitrate", "length", "playcount", "rating", "playtime", "lastplayed", "commitid", "mtime", - "lastelapsed", "lastoffset" + "lastelapsed", "lastoffset" #if !defined(LOGF_ENABLE) }; -#define logf(...) do { } while(0) +#define logf_clauses(...) do { } while(0) #elif defined(LOGF_CLAUSES) /* strings for logf debugging */ "tag_virt_basename", "tag_virt_length_min", "tag_virt_length_sec", "tag_virt_playtime_min", "tag_virt_playtime_sec", @@ -163,7 +164,7 @@ static const char *tag_type_str[] = { [clause_oneof] = "clause_oneof", [clause_logical_or] = "clause_logical_or" }; -#define logf_clause logf +#define logf_clauses logf #endif /* ndef LOGF_ENABLE */ /* Status information of the tagcache. */