swap -l output header needs work
Consider the following output from the swap command on a current system
# swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 142,2 8 4194296 3417480 # swap -lh swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 142,2 4K 2.0G 1.6G
There are two problems here:
1. The header doesn't line up with the values at all. The name of the swap device is longer than whoever implemented this initially thought of, and swap sizes can be a little larger as well
2. For the case where -l is combined with -k or -h, the use of "blocks" in the header is just wrong. It should probably be just "size"