HomeFreeBSD

MFC r338646: dd(1): Correct padding in status=progress

Description

MFC r338646: dd(1): Correct padding in status=progress

Output padding is specified via outlen, which is set using the return value
of fprintf. Because it's printing that padding plus a trailing byte, it
grows by one each iteration rather than reflecting actual length.

Additionally, iec was sized improperly for scaling up similarly to si.
Fixing this revealed that the humanize_number(3) call to populate persec
was using the wrong width.

Details

Provenance
kevansAuthored on
Parents
rS339162: MFC r338223, r338263: Missing bits from OptionalObsoleteFiles
Branches
Unknown
Tags
Unknown