Revision: 14200
Author: [email protected]
Date: Wed Apr 10 02:18:41 2013
Log: Use PrintF instead of fprintf.
[email protected]
BUG=
Review URL: https://chromiumcodereview.appspot.com/13811020
http://code.google.com/p/v8/source/detail?r=14200
Modified:
/branches/bleeding_edge/src/arm/disasm-arm.cc
/branches/bleeding_edge/src/disassembler.cc
/branches/bleeding_edge/src/flags.cc
/branches/bleeding_edge/src/gdb-jit.cc
/branches/bleeding_edge/src/isolate.cc
/branches/bleeding_edge/src/objects.cc
=======================================
--- /branches/bleeding_edge/src/arm/disasm-arm.cc Wed Feb 27 03:52:45 2013
+++ /branches/bleeding_edge/src/arm/disasm-arm.cc Wed Apr 10 02:18:41 2013
@@ -1561,8 +1561,8 @@
buffer[0] = '\0';
byte* prev_pc = pc;
pc += d.InstructionDecode(buffer, pc);
- fprintf(f, "%p %08x %s\n",
- prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
+ PrintF(f, "%p %08x %s\n",
+ prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
}
}
=======================================
--- /branches/bleeding_edge/src/disassembler.cc Mon Mar 18 06:57:49 2013
+++ /branches/bleeding_edge/src/disassembler.cc Wed Apr 10 02:18:41 2013
@@ -50,8 +50,8 @@
pc - begin,
*pc);
} else {
- fprintf(f, "%" V8PRIxPTR " %4" V8PRIdPTR " %02x\n",
- reinterpret_cast<uintptr_t>(pc), pc - begin, *pc);
+ PrintF(f, "%" V8PRIxPTR " %4" V8PRIdPTR " %02x\n",
+ reinterpret_cast<uintptr_t>(pc), pc - begin, *pc);
}
}
}
@@ -101,7 +101,7 @@
if (f == NULL) {
PrintF("%s\n", out->Finalize());
} else {
- fprintf(f, "%s\n", out->Finalize());
+ PrintF(f, "%s\n", out->Finalize());
}
out->Reset();
}
=======================================
--- /branches/bleeding_edge/src/flags.cc Wed Mar 13 09:13:05 2013
+++ /branches/bleeding_edge/src/flags.cc Wed Apr 10 02:18:41 2013
@@ -367,8 +367,8 @@
// sense there.
continue;
} else {
- fprintf(stderr, "Error: unrecognized flag %s\n"
- "Try --help for options\n", arg);
+ PrintF(stderr, "Error: unrecognized flag %s\n"
+ "Try --help for options\n", arg);
return_code = j;
break;
}
@@ -381,9 +381,9 @@
if (i < *argc) {
value = argv[i++];
} else {
- fprintf(stderr, "Error: missing value for flag %s of type %s\n"
- "Try --help for options\n",
- arg, Type2String(flag->type()));
+ PrintF(stderr, "Error: missing value for flag %s of type %s\n"
+ "Try --help for options\n",
+ arg, Type2String(flag->type()));
return_code = j;
break;
}
@@ -424,9 +424,9 @@
if ((flag->type() == Flag::TYPE_BOOL && value != NULL) ||
(flag->type() != Flag::TYPE_BOOL && is_bool) ||
*endp != '\0') {
- fprintf(stderr, "Error: illegal value for flag %s of type %s\n"
- "Try --help for options\n",
- arg, Type2String(flag->type()));
+ PrintF(stderr, "Error: illegal value for flag %s of type %s\n"
+ "Try --help for options\n",
+ arg, Type2String(flag->type()));
return_code = j;
break;
}
=======================================
--- /branches/bleeding_edge/src/gdb-jit.cc Wed Apr 10 01:10:51 2013
+++ /branches/bleeding_edge/src/gdb-jit.cc Wed Apr 10 02:18:41 2013
@@ -1842,7 +1842,7 @@
#ifdef OBJECT_PRINT
void __gdb_print_v8_object(MaybeObject* object) {
object->Print();
- fprintf(stdout, "\n");
+ PrintF(stdout, "\n");
}
#endif
}
=======================================
--- /branches/bleeding_edge/src/isolate.cc Tue Apr 9 04:31:10 2013
+++ /branches/bleeding_edge/src/isolate.cc Wed Apr 10 02:18:41 2013
@@ -1140,7 +1140,7 @@
Execution::GetStackTraceLine(recv, fun, pos_obj, is_top_level);
if (line->length() > 0) {
line->PrintOn(out);
- fprintf(out, "\n");
+ PrintF(out, "\n");
}
}
}
@@ -1306,8 +1306,9 @@
FLAG_abort_on_uncaught_exception &&
(report_exception || can_be_caught_externally)) {
fatal_exception_depth++;
- fprintf(stderr, "%s\n\nFROM\n",
- *MessageHandler::GetLocalizedMessage(this, message_obj));
+ PrintF(stderr,
+ "%s\n\nFROM\n",
+ *MessageHandler::GetLocalizedMessage(this, message_obj));
PrintCurrentStackTrace(stderr);
OS::Abort();
}
=======================================
--- /branches/bleeding_edge/src/objects.cc Tue Apr 9 09:49:28 2013
+++ /branches/bleeding_edge/src/objects.cc Wed Apr 10 02:18:41 2013
@@ -8003,7 +8003,7 @@
void String::PrintOn(FILE* file) {
int length = this->length();
for (int i = 0; i < length; i++) {
- fprintf(file, "%c", Get(i));
+ PrintF(file, "%c", Get(i));
}
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.