diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-04-21 20:27:45 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-04-21 20:27:45 +0000 |
commit | ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1 (patch) | |
tree | 360ac2ca45d89e6568e10667f867e8a3194c1f26 /lldb/source/Core/Disassembler.cpp | |
parent | be22131c28bc64727456fa9f53e1e9e8e02dd237 (diff) | |
download | bcm5719-llvm-ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1.tar.gz bcm5719-llvm-ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1.zip |
Use self.TraceOn() API to decide whether to print debug output.
llvm-svn: 129935
Diffstat (limited to 'lldb/source/Core/Disassembler.cpp')
-rw-r--r-- | lldb/source/Core/Disassembler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |