diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-13 23:22:22 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-13 23:22:22 +0000 |
commit | 2c08fa619bcf196c51d7db0a4d1aa308b3d0e3df (patch) | |
tree | e99e9cce94d5a9d100efd13c110bba17f9e73c69 /src/directory.c | |
parent | 3dafd6ced0b06734f30d5339004dd29b9ac8975b (diff) | |
download | mpd-2c08fa619bcf196c51d7db0a4d1aa308b3d0e3df.tar.gz mpd-2c08fa619bcf196c51d7db0a4d1aa308b3d0e3df.tar.xz mpd-2c08fa619bcf196c51d7db0a4d1aa308b3d0e3df.zip |
a few DEBUG statements
git-svn-id: https://svn.musicpd.org/mpd/trunk@2642 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/directory.c')
-rw-r--r-- | src/directory.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/directory.c b/src/directory.c index 7bd9b9f61..9ad301092 100644 --- a/src/directory.c +++ b/src/directory.c @@ -979,9 +979,15 @@ void sortDirectory(Directory * directory) { int writeDirectoryDB() { FILE * fp; + DEBUG("removing empty directories from DB\n"); deleteEmptyDirectoriesInDirectory(mp3rootDirectory); + + DEBUG("sorting DB\n"); + sortDirectory(mp3rootDirectory); + DEBUG("writing DB\n"); + while(!(fp=fopen(directory_db,"w")) && errno==EINTR); if(!fp) return -1; @@ -1077,6 +1083,8 @@ int readDirectoryDB() { } } + DEBUG("reading DB\n"); + readDirectoryInfo(fp,mp3rootDirectory); while(fclose(fp) && errno==EINTR); |