Added the "0x" prefix to hex representation

This commit is contained in:
George Vardakis 2016-05-13 16:19:47 +03:00
parent 455e19e466
commit 855ac47c26
1 changed files with 1 additions and 1 deletions

View File

@ -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<<std::endl;
break;
case 2: