]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix subr::hex_string to use 0x prefix.
authorRoland McGrath <roland@redhat.com>
Thu, 9 Jul 2009 06:51:41 +0000 (23:51 -0700)
committerRoland McGrath <roland@redhat.com>
Thu, 9 Jul 2009 06:51:41 +0000 (23:51 -0700)
libdw/c++/subr.hh

index e795ec70a1c9a09be573a97e0ee1b10bc380175e..1ad1a52de6ee330d1c5cce2269c25521b9d3defe 100644 (file)
@@ -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 ();
     }