From 25afadfc720ef5410211c3f4f85c8f4a0858b8d9 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 7 Nov 2016 11:43:40 +0100 Subject: btrfs-progs: send dump: print escaped path Signed-off-by: David Sterba --- send-dump.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'send-dump.c') diff --git a/send-dump.c b/send-dump.c index 9cc84c23..064c914e 100644 --- a/send-dump.c +++ b/send-dump.c @@ -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); -- cgit v1.2.3