Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 86d461ac28b466c3ba800752a4cfa955947de53c..fb5e3e59d6b7f93079ef26d19063ef05f03f22bf 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -4229,13 +4229,15 @@ RawLibraryPrefix* Class::LookupLibraryPrefix(const String& name) const { |
const char* Class::ToCString() const { |
- const char* format = "%s Class: %s"; |
+ const char* format = "%s %sClass: %s"; |
const Library& lib = Library::Handle(library()); |
const char* library_name = lib.IsNull() ? "" : lib.ToCString(); |
+ const char* patch_prefix = is_patch() ? "Patch " : ""; |
const char* class_name = String::Handle(Name()).ToCString(); |
- intptr_t len = OS::SNPrint(NULL, 0, format, library_name, class_name) + 1; |
+ intptr_t len = |
+ OS::SNPrint(NULL, 0, format, library_name, patch_prefix, class_name) + 1; |
char* chars = Thread::Current()->zone()->Alloc<char>(len); |
- OS::SNPrint(chars, len, format, library_name, class_name); |
+ OS::SNPrint(chars, len, format, library_name, patch_prefix, class_name); |
return chars; |
} |