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

Unified Diff: runtime/vm/heap.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/freelist.cc ('k') | runtime/vm/heap_profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index 0168f73014ca2ef4edfad1cb41c2f60fd7171b55..aa766e0c83137589dc43a180e017f201ee7b7e07 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -74,7 +74,7 @@ uword Heap::AllocateOld(intptr_t size) {
CollectAllGarbage();
addr = old_space_->TryAllocate(size, PageSpace::kForceGrowth);
if (addr == 0) {
- OS::PrintErr("Exhausted heap space, trying to allocate %d bytes.\n",
+ OS::PrintErr("Exhausted heap space, trying to allocate %"Pd" bytes.\n",
size);
}
}
@@ -311,9 +311,9 @@ bool Heap::Verify() const {
void Heap::PrintSizes() const {
- OS::PrintErr("New space (%dk of %dk) "
- "Old space (%dk of %dk) "
- "Code space (%dk of %dk)\n",
+ OS::PrintErr("New space (%"Pd"k of %"Pd"k) "
+ "Old space (%"Pd"k of %"Pd"k) "
+ "Code space (%"Pd"k of %"Pd"k)\n",
(new_space_->in_use() / KB), (new_space_->capacity() / KB),
(old_space_->in_use() / KB), (old_space_->capacity() / KB),
(code_space_->in_use() / KB), (code_space_->capacity() / KB));
« no previous file with comments | « runtime/vm/freelist.cc ('k') | runtime/vm/heap_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698