projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
637563b
)
btrfs-progs: send dump: print escaped path
author
David Sterba
<dsterba@suse.com>
Mon, 7 Nov 2016 10:43:40 +0000
(11:43 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 14 Dec 2016 14:06:34 +0000
(15:06 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
send-dump.c
patch
|
blob
|
history
diff --git
a/send-dump.c
b/send-dump.c
index
9cc84c2
..
064c914
100644
(file)
--- 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);