Avoid using %# printf specifier

This commit is contained in:
Rangi42
2023-11-02 11:20:49 -04:00
committed by Eldred Habert
parent b4dbb5093a
commit a64f28de5c
7 changed files with 22 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ diff <(xxd "$1") <(xxd "$2") | while read -r LINE; do
while read -r SYMADDR SYM; do
SYMADDR=$((0x${SYMADDR#*:}))
if [[ $SYMADDR -le $ADDR ]]; then
printf " (%s+%#x)\n" "$SYM" $((ADDR - SYMADDR))
printf " (%s+0x%x)\n" "$SYM" $((ADDR - SYMADDR))
fi
# TODO: assumes sorted sym files
done | tail -n 1