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/app.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app.hpp') diff --git a/src/app.hpp b/src/app.hpp index 9f8b7ce..1029aac 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -33,6 +33,7 @@ #include "policy.hpp" #include "result.hpp" #include "wayland.hpp" +#include "hmi-debug.h" namespace wl { struct display; @@ -76,7 +77,7 @@ struct id_allocator { this->id2name[sid] = name; // this->pending_surfaces.insert({sid}); this->name2id[name] = sid; - logdebug("allocated new id %u with name %s", sid, name.c_str()); + HMI_DEBUG("wm", "allocated new id %u with name %s", sid, name.c_str()); return sid; } -- cgit 1.2.3-korg