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
This commit is contained in:
parent
5de08ea834
commit
54929e8871
1 changed files with 11 additions and 0 deletions
|
@ -1675,6 +1675,17 @@ static void __attribute__ ((noinline)) add_tagcache(char *path,
|
|||
bool has_albumartist;
|
||||
bool has_grouping;
|
||||
|
||||
#ifdef SIMULATOR
|
||||
/* Crude logging for the sim - to aid in debugging */
|
||||
int logfd = open(ROCKBOX_DIR "/database.log",
|
||||
O_WRONLY | O_APPEND | O_CREAT);
|
||||
if (logfd >= 0) {
|
||||
write(logfd, path, strlen(path));
|
||||
write(logfd, "\n", 1);
|
||||
close(logfd);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (cachefd < 0)
|
||||
return ;
|
||||
|
||||
|
|
Loading…
Reference in a new issue