From: Roland McGrath Date: Thu, 9 Jul 2009 06:51:41 +0000 (-0700) Subject: Fix subr::hex_string to use 0x prefix. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f4cc01ae2de604b2a9f3012a7433ead53fc50cc;p=thirdparty%2Felfutils.git Fix subr::hex_string to use 0x prefix. --- 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 (); }