From 860d9537b74f6fe406d21d3da753a3d09b995557 Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Mon, 23 Oct 2017 23:17:47 +0900 Subject: 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 --- src/policy.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/policy.hpp') 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; } }; -- cgit 1.2.3-korg