Small change to hex print

This commit is contained in:
George Vardakis 2016-05-14 19:48:21 +03:00
parent c63b095b7b
commit fb9f887587
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 << "0x" << std::hex<< std::setfill('0') << std::setw(2)<< std::dec <<(int)s[i] << " ";
printf("0x%02x ",s[i]);
std::cout<<std::endl;
break;
case 2: