btrfs-progs: send dump: print escaped path

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-11-07 11:43:40 +01:00
parent 637563be3c
commit 25afadfc72
1 changed files with 7 additions and 1 deletions

View File

@ -110,7 +110,13 @@ static int __print_dump(int subvol, void *user, const char *path,
}
/* Unified header */
printf("%-16s%-32s", title, out_path);
printf("%-16s", title);
ret = print_path_escaped(out_path);
if (!fmt)
return 0;
/* Short paths ale aligned to 32 chars */
while (ret++ < 32)
putchar(' ');
va_start(args, fmt);
/* Operation specified ones */
vprintf(fmt, args);