mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Don't use hardcoded cerr in hfa.h State::dump
After https://gitlab.com/apparmor/apparmor/-/merge_requests/1410#note_2197215172 I did a quick grep and uncovered one other potential instance of `cerr` being written to in a dump function that takes an `ostream`. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1413 Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
commit
aa24194981
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ public:
|
|||
|
||||
ostream &dump(ostream &os)
|
||||
{
|
||||
cerr << *this << "\n";
|
||||
os << *this << "\n";
|
||||
for (StateTrans::iterator i = trans.begin(); i != trans.end(); i++) {
|
||||
os << " " << i->first.c << " -> " << *i->second << "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue