From ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 21 Apr 2011 20:27:45 +0000 Subject: Use self.TraceOn() API to decide whether to print debug output. llvm-svn: 129935 --- lldb/source/Core/Disassembler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lldb/source/Core/Disassembler.cpp') diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp index 2db2d55308e..a8c807dd99a 100644 --- a/lldb/source/Core/Disassembler.cpp +++ b/lldb/source/Core/Disassembler.cpp @@ -510,14 +510,14 @@ Instruction::TestEmulation (Stream *out_stream, const char *file_name) if (!file_name) { - out_stream->Printf ("Instruction::TestEmulation: Missing file_name.\n"); + out_stream->Printf ("Instruction::TestEmulation: Missing file_name."); return false; } FILE *test_file = fopen (file_name, "r"); if (!test_file) { - out_stream->Printf ("Instruction::TestEmulation: Attempt to open test file failed.\n"); + out_stream->Printf ("Instruction::TestEmulation: Attempt to open test file failed."); return false; } @@ -525,7 +525,7 @@ Instruction::TestEmulation (Stream *out_stream, const char *file_name) char buffer[256]; if (!fgets (buffer,255, test_file)) // Read/skip first line of file, which should be a comment line (description). { - out_stream->Printf ("Instruction::TestEmulation: Read comment line failed.\n"); + out_stream->Printf ("Instruction::TestEmulation: Read comment line failed."); fclose (test_file); return false; } @@ -533,7 +533,7 @@ Instruction::TestEmulation (Stream *out_stream, const char *file_name) if (fscanf (test_file, "%s", buffer) != 1) // Read the arch or arch-triple from the file { - out_stream->Printf ("Instruction::TestEmulation: Read arch failed.\n"); + out_stream->Printf ("Instruction::TestEmulation: Read arch failed."); fclose (test_file); return false; } @@ -549,9 +549,9 @@ Instruction::TestEmulation (Stream *out_stream, const char *file_name) fclose (test_file); if (success) - out_stream->Printf ("Emulation test succeeded.\n"); + out_stream->Printf ("Emulation test succeeded."); else - out_stream->Printf ("Emulation test failed.\n"); + out_stream->Printf ("Emulation test failed."); return success; } -- cgit v1.2.3