]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: align all sizes in table to the right
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Jun 2021 15:01:27 +0000 (17:01 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Jun 2021 20:39:33 +0000 (05:39 +0900)
src/partition/repart.c

index cd2d02a3b897c6da2fc29b9a319f57c0860cfdc8..2fb4e2ec46cc3de94594520df4b2b9cbfb8f431c 100644 (file)
@@ -1986,8 +1986,13 @@ static int context_dump_partitions(Context *context, const char *node) {
                                                     (size_t) 5, (size_t) 6, (size_t) 7, (size_t) 9, (size_t) 10, (size_t) 12);
         }
 
-        (void) table_set_align_percent(t, table_get_cell(t, 0, 4), 100);
         (void) table_set_align_percent(t, table_get_cell(t, 0, 5), 100);
+        (void) table_set_align_percent(t, table_get_cell(t, 0, 6), 100);
+        (void) table_set_align_percent(t, table_get_cell(t, 0, 7), 100);
+        (void) table_set_align_percent(t, table_get_cell(t, 0, 8), 100);
+        (void) table_set_align_percent(t, table_get_cell(t, 0, 9), 100);
+        (void) table_set_align_percent(t, table_get_cell(t, 0, 10), 100);
+        (void) table_set_align_percent(t, table_get_cell(t, 0, 11), 100);
 
         LIST_FOREACH(partitions, p, context->partitions) {
                 _cleanup_free_ char *size_change = NULL, *padding_change = NULL, *partname = NULL;