aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/main.cpp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-23 20:20:23 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-23 20:20:23 +0900
commita330391a355a9fb00a502fea0cf49d8c38443817 (patch)
tree39f415b483bbdac59faf9324ffb8daa3ba48dc2e /homescreen/src/main.cpp
parent3d836c185f92fb38fed31e373f371187322b2f3f (diff)
Add debug message control by envirment
Add HMI_DEBUG to print debug message, It control by USE_HMI_DEBUG envirment. Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'homescreen/src/main.cpp')
-rw-r--r--homescreen/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 1b42832..45a7c0f 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -31,6 +31,7 @@
#include "afm_user_daemon_proxy.h"
#include "mastervolume.h"
#include "homescreenhandler.h"
+#include "hmi-debug.h"
// XXX: We want this DBus connection to be shared across the different
// QML objects, is there another way to do this, a nice way, perhaps?
@@ -83,7 +84,7 @@ int main(int argc, char *argv[])
token = positionalArguments.takeFirst();
}
- qDebug("HomeScreen port = %d, token = %s", port, token.toStdString().c_str());
+ HMI_DEBUG("HomeScreen","port = %d, token = %s", port, token.toStdString().c_str());
// import C++ class to QML
qmlRegisterType<ApplicationLauncher>("HomeScreen", 1, 0, "ApplicationLauncher");