summaryrefslogtreecommitdiff
path: root/apps/plugins/disktidy.c
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2010-12-25 21:54:24 +0000
committerAlexander Levin <al.le@rockbox.org>2010-12-25 21:54:24 +0000
commit5c48232e456db3d31e3d657e6b2031c71378b396 (patch)
tree1b87dbd81d8b1df6818fbf28e7a146d54339c083 /apps/plugins/disktidy.c
parenta0516f036f3ab2faaca055ea7a8691ddcb3632f8 (diff)
downloadrockbox-5c48232e456db3d31e3d657e6b2031c71378b396.tar.gz
rockbox-5c48232e456db3d31e3d657e6b2031c71378b396.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c
index 2e8ece538c..5ed3f76e22 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)
383 383
384 removed++; /* increment removed files counter */ 384 removed++; /* increment removed files counter */
385 /* delete file */ 385 /* delete file */
386 rb->remove(path); 386 if (rb->remove(path) != 0)
387 DEBUGF("Could not delete file %s\n", path);
387 388
388 /* restore path */ 389 /* restore path */
389 tidy_path_remove_entry(path, old_path_length, path_length); 390 tidy_path_remove_entry(path, old_path_length, path_length);