diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-19 15:19:36 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-19 15:19:36 -0800 |
commit | 15c44292f0c338ace40ab85dcf5b4b9bf04e997f (patch) | |
tree | ea3233038e5703a5167c7665f9b446cf12b5fb41 /047check_type_by_name.cc | |
parent | 6cc999ae812b835786f08a0b8d958a545c3d8ef0 (diff) | |
download | mu-15c44292f0c338ace40ab85dcf5b4b9bf04e997f.tar.gz |
2671 - never use debug_string() in traces
It's only for transient debugging.
Diffstat (limited to '047check_type_by_name.cc')
-rw-r--r-- | 047check_type_by_name.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/047check_type_by_name.cc b/047check_type_by_name.cc index 74f61e24..9889674b 100644 --- a/047check_type_by_name.cc +++ b/047check_type_by_name.cc @@ -40,7 +40,7 @@ void deduce_missing_type(map<string, type_tree*>& type, map<string, string_tree* if (x.type) return; if (!contains_key(type, x.name)) return; x.type = new type_tree(*type[x.name]); - trace(9992, "transform") << x.name << " <= " << debug_string(x.type) << end(); + trace(9992, "transform") << x.name << " <= " << to_string(x.type) << end(); assert(!x.properties.at(0).second); x.properties.at(0).second = new string_tree(*type_name[x.name]); } @@ -50,7 +50,7 @@ void check_type(map<string, type_tree*>& type, map<string, string_tree*>& type_n if (is_integer(x.name)) return; // if you use raw locations you're probably doing something unsafe if (!x.type) return; // might get filled in by other logic later if (!contains_key(type, x.name)) { - trace(9992, "transform") << x.name << " => " << debug_string(x.type) << end(); + trace(9992, "transform") << x.name << " => " << to_string(x.type) << end(); put(type, x.name, x.type); } if (!contains_key(type_name, x.name)) |