diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-25 22:23:14 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-26 09:03:13 -0700 |
commit | 15152795cead7ed7d6673a0c2ac996ac9c346945 (patch) | |
tree | 6a4e362e654f587fd90d8561a92a3c0948bb780c | |
parent | d44d413216fae85343bfb53327b2f1a2c13d7faa (diff) | |
download | mu-15152795cead7ed7d6673a0c2ac996ac9c346945.tar.gz |
4417
Audit poor uses of 'cout'.
-rw-r--r-- | 010vm.cc | 2 | ||||
-rw-r--r-- | 020run.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/010vm.cc b/010vm.cc index 9cec18d2..d773fe01 100644 --- a/010vm.cc +++ b/010vm.cc @@ -592,7 +592,7 @@ void skip_whitespace_but_not_newline(istream& in) { void dump_memory() { for (map<int, double>::iterator p = Memory.begin(); p != Memory.end(); ++p) { - cout << p->first << ": " << no_scientific(p->second) << '\n'; + cerr << p->first << ": " << no_scientific(p->second) << '\n'; } } diff --git a/020run.cc b/020run.cc index c9d28666..da43e5e7 100644 --- a/020run.cc +++ b/020run.cc @@ -91,7 +91,7 @@ void run_current_routine() { } // End Primitive Recipe Implementations default: { - cout << "not a primitive op: " << current_instruction().operation << '\n'; + raise << "not a primitive op: " << current_instruction().operation << '\n' << end(); } } //: used by a later layer |