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

Unified Diff: runtime/vm/message_handler_test.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/message_handler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_handler_test.cc
diff --git a/runtime/vm/message_handler_test.cc b/runtime/vm/message_handler_test.cc
index 60390055542dd1462011372b612f69fb949416ca..57eeb342a71ef401a4b75a317be6d887053d46c8 100644
--- a/runtime/vm/message_handler_test.cc
+++ b/runtime/vm/message_handler_test.cc
@@ -50,9 +50,13 @@ class TestMessageHandler : public MessageHandler {
// For testing purposes, keep a string with a list of the ports
// for all messages we receive.
intptr_t len =
- OS::SNPrint(NULL, 0, "%s %d", port_buffer_, message->dest_port()) + 1;
+ OS::SNPrint(NULL, 0, "%s %"Pd64"",
+ port_buffer_,
+ message->dest_port()) + 1;
char* buffer = reinterpret_cast<char*>(malloc(len));
- OS::SNPrint(buffer, len, "%s %d", port_buffer_, message->dest_port());
+ OS::SNPrint(buffer, len, "%s %"Pd64"",
+ port_buffer_,
+ message->dest_port());
free(port_buffer_);
port_buffer_ = buffer;
delete message;
« no previous file with comments | « runtime/vm/message_handler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698