From 5c48232e456db3d31e3d657e6b2031c71378b396 Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Sat, 25 Dec 2010 21:54:24 +0000 Subject: [PATCH] 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 --- apps/plugins/disktidy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) 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);