Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 May 2019 00:59:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237699] Hex printing with subr_prf cuts off zero-padded MSB
Message-ID:  <bug-237699-227-JUMIsKikDr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237699-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237699-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237699

--- Comment #4 from Conrad Meyer <cem@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 by=
tes
of number in your fixed width print (or some large numbers will be different
widths than others).

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237699-227-JUMIsKikDr>