summaryrefslogtreecommitdiffstats
path: root/src/policy.hpp
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2017-10-23 23:17:47 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-11-01 11:02:26 +0000
commit860d9537b74f6fe406d21d3da753a3d09b995557 (patch)
tree7c3156923f0b7499456764b4de8f6a68f685ddc0 /src/policy.hpp
parentbe02238a0e92c74a13daaf516b5f379f29217eb8 (diff)
Add debug message macros controlled by environment variable
Add a HMI_DEBUG macro to print debug messages. It is controlled by the USE_HMI_DEBUG environment variable. Change-Id: I3bc5bf2f3b0e9f5ee06f340053f29ad36e7d9dbb Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/policy.hpp')
-rw-r--r--src/policy.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/policy.hpp b/src/policy.hpp
index ed5d6ba..d6aefc9 100644
--- a/src/policy.hpp
+++ b/src/policy.hpp
@@ -18,6 +18,7 @@
#define TMCAGLWM_POLICY_HPP
#include "layout.hpp"
+#include "hmi-debug.h"
namespace wm {
@@ -25,7 +26,7 @@ class Policy {
public:
bool layout_is_valid(LayoutState const & /* layout */) {
// We do not check for policy currently
- logdebug("Policy check returns positive");
+ HMI_DEBUG("wm", "Policy check returns positive");
return true;
}
};