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

Unified Diff: runtime/vm/flags.cc

Issue 8413056: Print also comments with --print_flags (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flags.cc
===================================================================
--- runtime/vm/flags.cc (revision 952)
+++ runtime/vm/flags.cc (working copy)
@@ -36,18 +36,19 @@
}
switch (type_) {
case kBoolean: {
- OS::Print("%s: %s\n", name_, *this->bool_ptr_ ? "true" : "false");
+ OS::Print("%s: %s (%s)\n",
+ name_, *this->bool_ptr_ ? "true" : "false", comment_);
break;
}
case kInteger: {
- OS::Print("%s: %d\n", name_, *this->int_ptr_);
+ OS::Print("%s: %d (%s)\n", name_, *this->int_ptr_, comment_);
break;
}
case kString: {
if (*this->charp_ptr_ != NULL) {
- OS::Print("%s: '%s'\n", name_, *this->charp_ptr_);
+ OS::Print("%s: '%s' (%s)\n", name_, *this->charp_ptr_, comment_);
} else {
- OS::Print("%s: (null)\n", name_);
+ OS::Print("%s: (null) (%s)\n", name_, comment_);
}
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698