[Bug 237699] Hex printing with subr_prf cuts off zero-padded MSB

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 2 00:59:31 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237699

--- Comment #4 from Conrad Meyer <cem at freebsd.org> ---
I see.  Most printf implementations won't truncate the number to fit the
specified width.  I.e., %#01x does not truncate 0x10 to 0x0.  So that is
probably a bug in our printf(9).

Probably you want %#018x anyway, though, to account for "0x" and full 16 bytes
of number in your fixed width print (or some large numbers will be different
widths than others).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list