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

Unified Diff: runtime/vm/locations.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/isolate.cc ('k') | runtime/vm/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.cc
diff --git a/runtime/vm/locations.cc b/runtime/vm/locations.cc
index 3f7ded17a157430d6763b2c4282761e8e5b0b6a4..efd1a19026144c9249bff2b46b53e7ddcda568ef 100644
--- a/runtime/vm/locations.cc
+++ b/runtime/vm/locations.cc
@@ -92,9 +92,9 @@ const char* Location::Name() const {
void Location::PrintTo(BufferFormatter* f) const {
if (kind() == kStackSlot) {
- f->Print("S%+d", stack_index());
+ f->Print("S%+"Pd"", stack_index());
} else if (kind() == kDoubleStackSlot) {
- f->Print("DS%+d", stack_index());
+ f->Print("DS%+"Pd"", stack_index());
} else {
f->Print("%s", Name());
}
@@ -103,7 +103,7 @@ void Location::PrintTo(BufferFormatter* f) const {
void Location::Print() const {
if (kind() == kStackSlot) {
- OS::Print("S%+d", stack_index());
+ OS::Print("S%+"Pd"", stack_index());
} else {
OS::Print("%s", Name());
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698