Minor cleanup of trace/output stuff (leftover from EINTR bug fix).
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
This commit is contained in:
parent
d5a187dd5a
commit
4f8acd2709
2 changed files with 0 additions and 17 deletions
|
@ -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()) {
|
||||
|
|
|
@ -120,7 +120,6 @@ Trace::InstRecord::dump(ostream &outs)
|
|||
// End of line...
|
||||
//
|
||||
outs << endl;
|
||||
outs.flush();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue