summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2009-07-04 19:28:47 +0000
committerJonas Häggqvist <rasher@rasher.dk>2009-07-04 19:28:47 +0000
commit54929e8871aa672a92dadbc0ad693ffd497c541f (patch)
tree938c7743c007c36d58445e374f4a1bf184ba6d79 /apps
parent5de08ea834e2fc146092a43eeb7fb508f6ae09db (diff)
downloadrockbox-54929e8871aa672a92dadbc0ad693ffd497c541f.tar.gz
rockbox-54929e8871aa672a92dadbc0ad693ffd497c541f.zip
Crude logging for the sim in database creation/updating - to aid in debugging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21638 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c11
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