tagcache add logging option for clause matching #2
Change-Id: Ideaa89a6fb227ecc8a4a107dced98f85b6b40a4f
This commit is contained in:
parent
a56975af6c
commit
0f2d623216
1 changed files with 4 additions and 3 deletions
|
@ -57,6 +57,7 @@
|
|||
|
||||
/*#define LOGF_ENABLE*/
|
||||
/*#define LOGF_CLAUSES define to enable logf clause matching (LOGF_ENABLE req'd) */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -143,7 +144,7 @@ static const char *tags_str[] = { "artist", "album", "genre", "title",
|
|||
"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. */
|
||||
|
|
Loading…
Reference in a new issue