Revert "Sync lib/hexdump.c with 3.12.y"

This reverts commit 7fc1a46e28d27673a3e8a0b5f61f3666dcc3b6ee.
moew nightmare tweaks