]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r338646: dd(1): Correct padding in status=progress
authorkevans <kevans@FreeBSD.org>
Wed, 3 Oct 2018 17:20:30 +0000 (17:20 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 3 Oct 2018 17:20:30 +0000 (17:20 +0000)
commit63bad25bbfd6851eface06e3d1d7acbfa3e28929
treeaff34e8e276993466fa36cdf3f6a5ce24246308a
parent36755eca14f0a89d75ba60492a2d4602560fd58c
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.
bin/dd/misc.c