38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
From 45dcf01111b7441d962cf2df9f03b6b0d6635fd9 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Mon, 4 Dec 2023 18:07:18 +0100
|
|
Subject: [PATCH] dissect-tool: right-align the partition number
|
|
|
|
The right-alignment was applied to the wrong column, because neither
|
|
ee8e497d249ab2e2df92aa024274f5b817270114 nor
|
|
1474d7ac2d308204e599a2502a8b5625bca76bcc updated the column count as
|
|
they should have.
|
|
|
|
(cherry picked from commit 748e87a7911813d64e34f2366df842b210a27f11)
|
|
(cherry picked from commit 8ff96162aa7e724fc0137afab9ad35ec662909df)
|
|
(cherry picked from commit 99fdfaa5076b530c02b6f87cd1ab23612ecd251a)
|
|
(cherry picked from commit 5794ad609c0bedb657d60823c516c5b32362fe25)
|
|
|
|
Conflict:code context adaptation
|
|
Reference:https://github.com/systemd/systemd/commit/748e87a7911813d64e34f2366df842b210a27f11
|
|
---
|
|
src/dissect/dissect.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c
|
|
index 25ce3f9771..6ff8221c9a 100644
|
|
--- a/src/dissect/dissect.c
|
|
+++ b/src/dissect/dissect.c
|
|
@@ -574,7 +574,7 @@ static int action_dissect(DissectedImage *m, LoopDevice *d) {
|
|
return log_oom();
|
|
|
|
(void) table_set_empty_string(t, "-");
|
|
- (void) table_set_align_percent(t, table_get_cell(t, 0, 7), 100);
|
|
+ (void) table_set_align_percent(t, table_get_cell(t, 0, 9), 100);
|
|
|
|
for (PartitionDesignator i = 0; i < _PARTITION_DESIGNATOR_MAX; i++) {
|
|
DissectedPartition *p = m->partitions + i;
|
|
--
|
|
2.33.0
|
|
|