From a330391a355a9fb00a502fea0cf49d8c38443817 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 23 Oct 2017 20:20:23 +0900 Subject: 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 --- homescreen/src/applicationlauncher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'homescreen/src/applicationlauncher.cpp') diff --git a/homescreen/src/applicationlauncher.cpp b/homescreen/src/applicationlauncher.cpp index 411fb03..7e1cda1 100644 --- a/homescreen/src/applicationlauncher.cpp +++ b/homescreen/src/applicationlauncher.cpp @@ -20,7 +20,7 @@ #include "afm_user_daemon_proxy.h" -#include +#include "hmi-debug.h" extern org::AGL::afm::user *afm_user_daemon_proxy; @@ -32,10 +32,10 @@ ApplicationLauncher::ApplicationLauncher(QObject *parent) int ApplicationLauncher::launch(const QString &application) { int result = -1; - qDebug() << "ApplicationLauncher launch" << application; + HMI_DEBUG("HomeScreen","ApplicationLauncher launch %s.", application.toStdString().c_str()); result = afm_user_daemon_proxy->start(application).value().toInt(); - qDebug() << "ApplicationLauncher pid:" << result; + HMI_DEBUG("HomeScreen","ApplicationLauncher pid: %d.", result); if (result > 1) { setCurrent(application); -- cgit 1.2.3-korg