]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsmem: increase the available width for the summary text labels
authorBenno Schulenberg <bensberg@telfort.nl>
Tue, 4 Mar 2025 16:08:05 +0000 (17:08 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Mar 2025 08:59:25 +0000 (09:59 +0100)
This allows the subsequent numbers to get vertically aligned for
most translations too.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/lsmem.c

index 94150e49d4de76453e300e3ca113568f1ca7ade0..9aa674581058a727527345a0503c4f894607a125 100644 (file)
@@ -306,22 +306,22 @@ static void fill_scols_table(struct lsmem *lsmem)
 static void print_summary(struct lsmem *lsmem)
 {
        if (lsmem->bytes) {
-               printf("%-23s %15"PRId64"\n",_("Memory block size:"), lsmem->block_size);
-               printf("%-23s %15"PRId64"\n",_("Total online memory:"), lsmem->mem_online);
-               printf("%-23s %15"PRId64"\n",_("Total offline memory:"), lsmem->mem_offline);
+               printf("%-32s %15"PRId64"\n",_("Memory block size:"), lsmem->block_size);
+               printf("%-32s %15"PRId64"\n",_("Total online memory:"), lsmem->mem_online);
+               printf("%-32s %15"PRId64"\n",_("Total offline memory:"), lsmem->mem_offline);
        } else {
                char *p;
 
                if ((p = size_to_human_string(SIZE_SUFFIX_1LETTER, lsmem->block_size)))
-                       printf("%-23s %5s\n",_("Memory block size:"), p);
+                       printf("%-32s %5s\n",_("Memory block size:"), p);
                free(p);
 
                if ((p = size_to_human_string(SIZE_SUFFIX_1LETTER, lsmem->mem_online)))
-                       printf("%-23s %5s\n",_("Total online memory:"), p);
+                       printf("%-32s %5s\n",_("Total online memory:"), p);
                free(p);
 
                if ((p = size_to_human_string(SIZE_SUFFIX_1LETTER, lsmem->mem_offline)))
-                       printf("%-23s %5s\n",_("Total offline memory:"), p);
+                       printf("%-32s %5s\n",_("Total offline memory:"), p);
                free(p);
        }
 }