about summary refs log tree commit diff stats
path: root/010vm.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-19 15:19:36 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-19 15:19:36 -0800
commit15c44292f0c338ace40ab85dcf5b4b9bf04e997f (patch)
treeea3233038e5703a5167c7665f9b446cf12b5fb41 /010vm.cc
parent6cc999ae812b835786f08a0b8d958a545c3d8ef0 (diff)
downloadmu-15c44292f0c338ace40ab85dcf5b4b9bf04e997f.tar.gz
2671 - never use debug_string() in traces
It's only for transient debugging.
Diffstat (limited to '010vm.cc')
-rw-r--r--010vm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/010vm.cc b/010vm.cc
index 711f8fa4..ed98bf6d 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -461,7 +461,7 @@ string to_string(const reagent& r) {
 
 string debug_string(const reagent& x) {
   ostringstream out;
-  out << x.name << ": " << debug_string(x.type) << " -- " << to_string(x);
+  out << x.name << ": " << x.value << ' ' << to_string(x.type) << " -- " << to_string(x);
   return out.str();
 }
 
@@ -514,7 +514,7 @@ void dump(const string_tree* x, ostream& out) {
   out << ')';
 }
 
-string debug_string(const type_tree* type) {
+string to_string(const type_tree* type) {
   // abbreviate a single-node tree to just its contents
   if (!type) return "NULLNULLNULL";  // should never happen
   ostringstream out;