Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index 7762624b0739c542f4fc64da1ce46af1b388d8a8..7a07f590be728456688a7446382026a8171b3898 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -50,12 +50,14 @@ void AstTyper::Run(CompilationInfo* info) { |
#ifdef OBJECT_PRINT |
static void PrintObserved(Variable* var, Object* value, Type* type) { |
- PrintF(" observed %s ", var->IsParameter() ? "param" : "local"); |
+ OFStream os(stdout); |
+ os << " observed " << (var->IsParameter() ? "param" : "local") << " "; |
var->name()->Print(); |
- PrintF(" : "); |
+ os << " : "; |
value->ShortPrint(); |
- PrintF(" -> "); |
- type->TypePrint(); |
+ os << " -> "; |
+ type->PrintTo(os); |
+ os << endl; |
} |
#endif // OBJECT_PRINT |