From cb4f0e878d6aa7f2fcaedb1a47dc77c7b8822c91 Mon Sep 17 00:00:00 2001 From: tchernobog Date: Sat, 12 Aug 2006 17:32:43 +0000 Subject: [PATCH] - Add printout on error. TODO: Still fails misteriously on malformed policies git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@847 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/backend/cpu_policies_gatekeeper.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/cpu_policies_gatekeeper.cc b/src/backend/cpu_policies_gatekeeper.cc index f85d143..00225b8 100644 --- a/src/backend/cpu_policies_gatekeeper.cc +++ b/src/backend/cpu_policies_gatekeeper.cc @@ -29,6 +29,7 @@ #include #include +#include using std::vector; using std::map; @@ -123,6 +124,7 @@ CPUPoliciesGatekeeper::activate_policy(History *history, CPUPolicy* policy) } catch(const CPUPolicyException& e) { + std::cerr << e.what() << std::endl; // See the comment above to understand why we do this // in this way _active_policies.erase(_active_policies.find(history));