]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cast the integer read as the first argument for %b to an unsigned integer
authorjhb <jhb@FreeBSD.org>
Tue, 7 Jan 2003 18:17:18 +0000 (18:17 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 7 Jan 2003 18:17:18 +0000 (18:17 +0000)
commit09a741fae61bb411204d6d533ec4670c5f416c37
tree8ef9b9c11f98393949e0f5d5f54fac1d2b811aa9
parent3f028c0665d25ad4ded3255452023bb4fbfeea34
Cast the integer read as the first argument for %b to an unsigned integer
so it's value is not sign extended when assigned to the uintmax_t variable
used internally by printf.  For example, if bit 31 is set in the cpuid
feature word, then %b would print out the initial value as a 16 character
hexadecimal value.  Now it only prints out an 8 character value.

Reviewed by: bde
sys/kern/subr_prf.c