> From: busybox <busybox-boun...@busybox.net> On Behalf Of Jones Syue ???
> Sent: Wednesday, March 13, 2024 2:22 AM
>
> > This patch replaces the 78 "-" prints with 75 "-". And replace the 80
> > columns summary line with 77 columns. ("%s" is considered as two chars
> > and should be filled with whitespace " ", so 77 = 75 + 2)
>
> This is an example which showing how this patch wrapped line to 75 columns,
> use awk to count the line length and prepend it to each line's head[1].
> Before applying this patch, the seperation line and summary line are
> wrapped to 78 columns:
>
> 72 crond_dummy_func                                       -     211    +211
> 72 .rodata                                            59300   59404    +104
> 72 crond_main                                           704     709      +5
> 72 static.crond_dummy_local_int                           -       4      +4
> 72 crond_dummy_global_int                                 -       4      +4
> 78 
> ------------------------------------------------------------------------------
> 78 (add/remove: 3/0 grow/shrink: 2/0 up/down: 328/0)             Total: 328 
> bytes
>
> After applying this patch, the seperation line and summary line are
> wrapped to 75 columns:
>
> 72 crond_dummy_func                                       -     211    +211
> 72 .rodata                                            59300   59404    +104
> 72 crond_main                                           704     709      +5
> 72 static.crond_dummy_local_int                           -       4      +4
> 72 crond_dummy_global_int                                 -       4      +4
> 75 ---------------------------------------------------------------------------
> 75 (add/remove: 3/0 grow/shrink: 2/0 up/down: 328/0)          Total: 328 bytes

How about

  72 (add/remove: 3/0 grow/shrink: 2/0 up/down: 328/0)       Total bytes: 328

to keep the numbers aligned?
--
Best regards,
Dietmar Schindler
________________________________
manroland Goss web systems GmbH | Managing Director: Franz Kriechbaum
Registered Office: Augsburg | Trade Register: AG Augsburg | HRB-No.: 32609 | 
VAT: DE815764857

Confidentiality note:
This message and any attached documents may contain confidential or proprietary 
information of manroland|Goss. These materials are intended only for the use of 
the intended recipient. If you are not the intended recipient of this 
transmission, you are hereby notified that any distribution, disclosure, 
printing, copying, storage, modification or the taking of any action in 
reliance upon this transmission is strictly prohibited. Delivery of this 
message to any person other than the intended recipient shall not compromise or 
waive such confidentiality, privilege or exemption from disclosure as to this 
communication. If you have received this communication in error, please 
immediately notify the sender and delete the message from your system. All 
liability for viruses is excluded to the fullest extent permitted by law.
________________________________

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to