[PATCH] format_proc_swaps: ensure space between fields for clarity

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Apr 30 19:06:10 GMT 2021


On Apr 30 07:19, Brian Inglis wrote:
> page/swap space name >= 40 or size/used >= 8 leaves no space between fields;
> ensure a space after name and add extra tabs after size and used fields;
> output appears like Linux 5.8 after changes to mm/swapfile(swap_show);
> 
> proc-swaps-space-before.log:
> ==> /proc/swaps <==
> Filename				Type		Size	Used	Priority
> /mnt/c/pagefile.sys                     file            11567748292920  0
> /mnt/d/pagefile.sys                     file            12582912205960  0
> 
> proc-swaps-space-after.log:
> ==> /proc/swaps <==
> Filename				Type		Size		Used		Priority
> /mnt/c/pagefile.sys			file		11567748	241024		0
> /mnt/d/pagefile.sys			file		12582912	182928		0
> ---
>  winsup/cygwin/fhandler_proc.cc | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)

Pushed.


Thanks,
Corinna


More information about the Cygwin-patches mailing list