diff options
author | David Sterba <dsterba@suse.com> | 2015-11-03 01:00:23 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-03 01:00:23 +0100 |
commit | 1de2da5dddc373cbadd6ff45d2fc8595492a78c6 (patch) | |
tree | 574f731a398c5408d3f973807f6824115ae03e33 /string-table.c | |
parent | 850ad2ce35b27476dc80afdf92ac63ad7f1f3571 (diff) |
btrfs-progs: string table: add specifier for fillup char
Currently it's one by a single "=", but we might want to use
a different filler, let's make it explicit by "*".
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'string-table.c')
-rw-r--r-- | string-table.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/string-table.c b/string-table.c index 2d05e4dc..7e01412d 100644 --- a/string-table.c +++ b/string-table.c @@ -101,7 +101,7 @@ void table_dump(struct string_table *tab) continue; len = strlen(tab->cells[idx]) - 1; - if (len < 1 || tab->cells[idx][0] == '=') + if (len < 1 || tab->cells[idx][0] == '*') continue; if (len > sizes[i]) @@ -116,11 +116,11 @@ void table_dump(struct string_table *tab) if (!cell || !strlen(cell)) { printf("%*s", sizes[i], ""); - } else if (cell && cell[0] == '=') { + } else if (cell && cell[0] == '*' && cell[1]) { int k = sizes[i]; while (k--) - putchar('='); + putchar(cell[1]); } else { printf("%*s", cell[0] == '<' ? -sizes[i] : sizes[i], |