Skip to content
Commit dae80152 authored by Roy Eldar's avatar Roy Eldar Committed by Florian Weimer
Browse files

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: default avatarRoy Eldar <royeldar0@gmail.com>
Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent 44d4d3bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment