diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-21 18:57:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-21 18:57:25 -0700 |
commit | 7feea75b13522c28d168a5200cfb7a89c06ad161 (patch) | |
tree | 66163d75c978eb4a13b59962470d3f26e7a7cf29 /050scenario.cc | |
parent | 5feb36ff8f189f5aeedd9ec3c436a3c5d90972ca (diff) | |
download | mu-7feea75b13522c28d168a5200cfb7a89c06ad161.tar.gz |
1417 - draft zoom levels in traces
Diffstat (limited to '050scenario.cc')
-rw-r--r-- | 050scenario.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/050scenario.cc b/050scenario.cc index ba5aa755..1d7366cd 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -218,7 +218,7 @@ void check_memory(const string& s) { int value = 0; in >> value; if (locations_checked.find(address) != locations_checked.end()) raise << "duplicate expectation for location " << address << '\n'; - trace("run") << "checking location " << address; + trace(Primitive_recipe_depth, "run") << "checking location " << address; if (Memory[address] != value) { if (Current_scenario) raise << "\nF - " << Current_scenario->name << ": expected location " << address << " to contain " << value << " but saw " << Memory[address] << '\n'; @@ -251,12 +251,12 @@ void check_type(const string& lhs, istream& in) { } void check_string(long long int address, const string& literal) { - trace("run") << "checking string length at " << address; + trace(Primitive_recipe_depth, "run") << "checking string length at " << address; if (Memory[address] != SIZE(literal)) raise << "expected location " << address << " to contain length " << SIZE(literal) << " of string [" << literal << "] but saw " << Memory[address] << '\n'; ++address; // now skip length for (long long int i = 0; i < SIZE(literal); ++i) { - trace("run") << "checking location " << address+i; + trace(Primitive_recipe_depth, "run") << "checking location " << address+i; if (Memory[address+i] != literal.at(i)) raise << "expected location " << (address+i) << " to contain " << literal.at(i) << " but saw " << Memory[address+i] << '\n'; } |