Downgrade outputs to 'DEBUG'
authorChristoph Egger <siccegge@cs.fau.de>
Tue, 27 May 2014 11:20:52 +0000 (13:20 +0200)
committerChristoph Egger <siccegge@cs.fau.de>
Tue, 27 May 2014 11:20:52 +0000 (13:20 +0200)
src/disassembler/llvm/LLVMDisassembler.cxx

index e60e0c28bf635e0f0ac21f6fd34232f2ec4d3251..e1570758da27831e02d1ca63fe85fa326297bda1 100644 (file)
@@ -144,7 +144,7 @@ void LLVMDisassembler::disassemble() {
         LLVMFunction * current_function = remaining_functions.top();
         remaining_functions.pop();
 
-        LOG4CXX_INFO(logger, "Handling function " << current_function->getName());
+        LOG4CXX_DEBUG(logger, "Handling function " << current_function->getName());
 
         // if ("_start" != current_function->getName())
         //  continue;
@@ -155,7 +155,7 @@ void LLVMDisassembler::disassemble() {
             LLVMBasicBlock * current_block = remaining_blocks.top();
             remaining_blocks.pop();
 
-            LOG4CXX_INFO(logger, "Handling Block starting at " << std::hex << current_block->getStartAddress());
+            LOG4CXX_DEBUG(logger, "Handling Block starting at " << std::hex << current_block->getStartAddress());
 
             uint64_t inst_size;
             uint64_t base_address;
@@ -168,7 +168,6 @@ void LLVMDisassembler::disassemble() {
 
                 if(llvm::MCDisassembler::Success ==
                    DisAsm->getInstruction(inst, inst_size, ref, current_address, nulls(), nulls())) {
-                    LOG4CXX_DEBUG(logger, "Inst Size " << inst_size);
 
                     uint8_t bytes[inst_size+2];
                     ref.readBytes(current_address, inst_size, bytes);
@@ -209,13 +208,13 @@ void LLVMDisassembler::disassemble() {
                 if (inst_size == 0 || MIA->isTerminator(inst) || MIA->isBranch(inst)) {
                     current_block->setEndAddress(current_address + base_address);
                                        blocks.insert(std::make_pair(current_block->getStartAddress(), current_block));
-                    LOG4CXX_INFO(logger, "Finished Block at " << current_block->getEndAddress());
+                    LOG4CXX_DEBUG(logger, "Finished Block at " << current_block->getEndAddress());
                     break;
                 }
                 current_address += inst_size;
             }
         }
-        LOG4CXX_INFO(logger, "Finished function " << current_function->getName());
+        LOG4CXX_DEBUG(logger, "Finished function " << current_function->getName());
     }
 }