diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 391d8c6f81..43babfa9a5 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -1675,6 +1675,17 @@ static void __attribute__ ((noinline)) add_tagcache(char *path, | |||
1675 | bool has_albumartist; | 1675 | bool has_albumartist; |
1676 | bool has_grouping; | 1676 | bool has_grouping; |
1677 | 1677 | ||
1678 | #ifdef SIMULATOR | ||
1679 | /* Crude logging for the sim - to aid in debugging */ | ||
1680 | int logfd = open(ROCKBOX_DIR "/database.log", | ||
1681 | O_WRONLY | O_APPEND | O_CREAT); | ||
1682 | if (logfd >= 0) { | ||
1683 | write(logfd, path, strlen(path)); | ||
1684 | write(logfd, "\n", 1); | ||
1685 | close(logfd); | ||
1686 | } | ||
1687 | #endif | ||
1688 | |||
1678 | if (cachefd < 0) | 1689 | if (cachefd < 0) |
1679 | return ; | 1690 | return ; |
1680 | 1691 | ||