From 15c44292f0c338ace40ab85dcf5b4b9bf04e997f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 19 Feb 2016 15:19:36 -0800 Subject: 2671 - never use debug_string() in traces It's only for transient debugging. --- 010vm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '010vm.cc') 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; -- cgit 1.4.1-2-gfad0