Minor cleanup of trace/output stuff (leftover from EINTR bug fix).
authorSteve Reinhardt <stever@eecs.umich.edu>
Fri, 19 Dec 2003 16:04:40 +0000 (08:04 -0800)
committerSteve Reinhardt <stever@eecs.umich.edu>
Fri, 19 Dec 2003 16:04:40 +0000 (08:04 -0800)
base/cprintf.cc:
    Get rid of unnecessary stream state check.
    Bug is fixed now, and I'm not sure this did much anyway.
cpu/exetrace.cc:
    Get rid of unnecessary flush() call.

--HG--
extra : convert_revision : 107dcdc578b2b0ad1652ee52ea0a33b0f3cd4e39

base/cprintf.cc
cpu/exetrace.cc

index 945ad5b38a6f1fd610450407a77421f9ebe37176..af3b26a57785af291b320ff15c51e18e595b4b5e 100644 (file)
@@ -238,22 +238,6 @@ ArgList::dump(const string &format)
           }
             break;
         }
-
-        ios::iostate state = stream->rdstate();
-        if (state) {
-#if 0
-            cout << "stream->rdstate() == " << state << endl;
-            if (state & ios::badbit)
-                cout << "stream is bad!\n";
-            if (state & ios::eofbit)
-                cout << "stream at eof!\n";
-            if (state & ios::failbit)
-                cout << "stream failed!\n";
-            if (state & ios::goodbit)
-                cout << "stream is good!!\n";
-#endif
-            stream->clear();
-        }
     }
 
     while (!objects.empty()) {
index ce6b0c5442dda4d6e06f8ebf2b80bf6be5efca0d..3e8877e933db062f75d31a6bb5cb4fe99ecdc4ab 100644 (file)
@@ -120,7 +120,6 @@ Trace::InstRecord::dump(ostream &outs)
     //  End of line...
     //
     outs << endl;
-    outs.flush();
 }