From 1f4cc01ae2de604b2a9f3012a7433ead53fc50cc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 Jul 2009 23:51:41 -0700 Subject: [PATCH] Fix subr::hex_string to use 0x prefix. --- libdw/c++/subr.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdw/c++/subr.hh b/libdw/c++/subr.hh index e795ec70a..1ad1a52de 100644 --- a/libdw/c++/subr.hh +++ b/libdw/c++/subr.hh @@ -169,7 +169,8 @@ namespace elfutils static inline std::string hex_string (int code) { std::ostringstream os; - os.setf(std::ios::hex, std::ios::basefield); + os.setf (std::ios::hex, std::ios::basefield); + os.setf (std::ios::showbase); os << code; return os.str (); } -- 2.47.2