From d1cecd5f46e371a531fd71a2fca1e064c325ac29 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Wed, 6 Nov 2024 18:00:16 -0800 Subject: [PATCH] Don't use hardcoded cerr in hfa.h State::dump Signed-off-by: Ryan Lee --- parser/libapparmor_re/hfa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/libapparmor_re/hfa.h b/parser/libapparmor_re/hfa.h index 1ba0f2cb2..55d8510e7 100644 --- a/parser/libapparmor_re/hfa.h +++ b/parser/libapparmor_re/hfa.h @@ -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"; }