From 855ac47c26ad5fcabf3a8271914cc70ac41edfea Mon Sep 17 00:00:00 2001 From: George Vardakis Date: Fri, 13 May 2016 16:19:47 +0300 Subject: [PATCH] Added the "0x" prefix to hex representation --- lib/multi_format_msg_sink_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/multi_format_msg_sink_impl.cc b/lib/multi_format_msg_sink_impl.cc index 61c8f58..336bff1 100644 --- a/lib/multi_format_msg_sink_impl.cc +++ b/lib/multi_format_msg_sink_impl.cc @@ -46,7 +46,7 @@ namespace gr { case 1: //for(size_t i=0; i< pmt::blob_length(msg); i++) for (size_t i = 0; i < s.length(); ++i) - std::cout << std::hex << std::setfill('0') << std::setw(2) <<(int)s[i]; + std::cout << "0x" << std::hex<< std::setfill('0') << std::setw(2)<< std::dec <<(int)s[i] << " "; std::cout<