Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: runtime/vm/raw_object.cc

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.cc
diff --git a/runtime/vm/raw_object.cc b/runtime/vm/raw_object.cc
index cbf238852a516b7c722567f3e71d51e7f3b427bb..3f2287927806e7af29deecf72b9369fbc161e7b4 100644
--- a/runtime/vm/raw_object.cc
+++ b/runtime/vm/raw_object.cc
@@ -27,15 +27,15 @@ void RawObject::Validate(Isolate* isolate) const {
uword tags = ptr()->tags_;
intptr_t reserved = ReservedBits::decode(tags);
if (reserved != 0) {
- FATAL1("Invalid tags field encountered %#lx\n", tags);
+ FATAL1("Invalid tags field encountered %#"Px"\n", tags);
}
intptr_t class_id = ClassIdTag::decode(tags);
if (!isolate->class_table()->IsValidIndex(class_id)) {
- FATAL1("Invalid class id encountered %d\n", class_id);
+ FATAL1("Invalid class id encountered %"Pd"\n", class_id);
}
intptr_t size = SizeTag::decode(tags);
if (size != 0 && size != SizeFromClass()) {
- FATAL1("Inconsistent class size encountered %d\n", size);
+ FATAL1("Inconsistent class size encountered %"Pd"\n", size);
}
}
@@ -288,7 +288,7 @@ intptr_t RawObject::VisitPointers(ObjectPointerVisitor* visitor) {
break;
}
default:
- OS::Print("Class Id: %d\n", class_id);
+ OS::Print("Class Id: %"Pd"\n", class_id);
UNREACHABLE();
break;
}
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698