elf: fix handling of negative numbers in dl-printf
_dl_debug_vdprintf is a bare-bones printf implementation; currently printing a signed integer (using "%d" format specifier) behaves incorrectly when the number is negative, as it just prints the corresponding unsigned integer, preceeded by a minus sign. For example, _dl_printf("%d", -1) would print '-4294967295'. Signed-off-by:Roy Eldar <royeldar0@gmail.com> Reviewed-by:
Florian Weimer <fweimer@redhat.com>
Loading
Please register or sign in to comment