Skip to content
Snippets Groups Projects
Commit cf2ac47c authored by jdh8d's avatar jdh8d
Browse files

print format fixing

parent b6cdc387
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,9 @@ bool ColoredInstructionNonces_t::create()
{
Instruction_t* target=*it2;
color_assignments[target][slot_no]=v;
cout<<"Setting [slot][color] for "<<target->GetBaseID()<<":"<<target->getDisassembly()
<<"=["<<v.GetPosition()<<"]["<<hex<<v.GetNonceValue()<<dec<<"]"<<endl;
cout<<"Setting slot[-"<<hex<<v.GetPosition()<<"]=color["<<hex<<v.GetNonceValue()<<dec<<"]"
<< " for "<<hex<<target->GetBaseID()<<":"<<target->getDisassembly()
<< endl;
}
// and we're done with this ICFS
......@@ -79,8 +80,8 @@ bool ColoredInstructionNonces_t::create()
if(insn->GetIBTargets())
{
v=GetColorOfIB(insn);
cout<<"IB assigned [slot][color] for "<<insn->GetBaseID()<<":"<<insn->getDisassembly()
<<"=["<<v.GetPosition()<<"]["<<hex<<v.GetNonceValue()<<dec<<"]"<<endl;
cout<<"IB assigned " <<"slot[-"<<v.GetPosition()<<"]=color["<<hex<<v.GetNonceValue()<<dec<<"]"
<< " for "<<insn->GetBaseID()<<":"<<insn->getDisassembly() << endl;
used_icfs.insert(*insn->GetIBTargets());
......
......@@ -1375,7 +1375,7 @@ bool SCFI_Instrument::add_libdl_as_needed_support()
index++;
}
#if 0
cout<<".dynamic contents after scfi update:"<<hex<<endl;
const string &dynstr_contents=dynamic_scoop->GetContents();
for(unsigned int i=0;i<dynstr_contents.size(); i+=16)
......@@ -1383,6 +1383,7 @@ bool SCFI_Instrument::add_libdl_as_needed_support()
cout<<*(long long*) &dynstr_contents.c_str()[i] <<" "
<<*(long long*) &dynstr_contents.c_str()[i+8] <<endl;
}
#endif
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment