The value to be formatted here, Val, is an int64_t which can not be formatted using %x.
This commit adjusts all misuses I was able to find in the llvm-dwarfdump project.
Failing tests in https://reviews.llvm.org/D153800 lead to the discovery and analysis of this issue.
Not really related to this change, but while you're here, can you drop the to_string calls? OS << llvm::format() should just work.