diff options
| author | Alexander Levin <al.le@rockbox.org> | 2010-12-25 21:54:24 +0000 |
|---|---|---|
| committer | Alexander Levin <al.le@rockbox.org> | 2010-12-25 21:54:24 +0000 |
| commit | 5c48232e456db3d31e3d657e6b2031c71378b396 (patch) | |
| tree | 1b87dbd81d8b1df6818fbf28e7a146d54339c083 /apps/plugins/disktidy.c | |
| parent | a0516f036f3ab2faaca055ea7a8691ddcb3632f8 (diff) | |
| download | rockbox-5c48232e456db3d31e3d657e6b2031c71378b396.zip rockbox-5c48232e456db3d31e3d657e6b2031c71378b396.tar.gz rockbox-5c48232e456db3d31e3d657e6b2031c71378b396.tar.bz2 rockbox-5c48232e456db3d31e3d657e6b2031c71378b396.tar.xz | |
disktidy: add a debug message if a file cannot be deleted
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28898 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/disktidy.c')
| -rw-r--r-- | apps/plugins/disktidy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c index 2e8ece5..5ed3f76 100644 --- a/apps/plugins/disktidy.c +++ b/apps/plugins/disktidy.c @@ -383,7 +383,8 @@ enum tidy_return tidy_clean(char *path, int *path_length) removed++; /* increment removed files counter */ /* delete file */ - rb->remove(path); + if (rb->remove(path) != 0) + DEBUGF("Could not delete file %s\n", path); /* restore path */ tidy_path_remove_entry(path, old_path_length, path_length); |