From: Martin Wilck <mwi...@arcor.de> Don't print whole path for files, which will mangle output for long path names. Rather distinguish between directories and files.
Signed-off-by: Martin Wilck <mwi...@arcor.de> --- cmds-restore.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds-restore.c b/cmds-restore.c index 5aa2167..f9dab7e 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -908,7 +908,7 @@ static int search_dir(struct btrfs_root *root, struct btrfs_key *key, ret = 0; } if (verbose) - printf("Restoring %s\n", path_name); + printf("Restoring %s\n", filename); if (dry_run) goto next; fd = open(path_name, O_CREAT|O_WRONLY, 0644); @@ -982,7 +982,7 @@ static int search_dir(struct btrfs_root *root, struct btrfs_key *key, } if (verbose) - printf("Restoring %s\n", path_name); + printf("Searching directory %s\n", path_name); errno = 0; if (dry_run) -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html