diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-10-23 20:20:23 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-10-23 20:20:23 +0900 |
commit | a330391a355a9fb00a502fea0cf49d8c38443817 (patch) | |
tree | 39f415b483bbdac59faf9324ffb8daa3ba48dc2e /homescreen/src/applicationlauncher.cpp | |
parent | 3d836c185f92fb38fed31e373f371187322b2f3f (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/applicationlauncher.cpp')
-rw-r--r-- | homescreen/src/applicationlauncher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <QtCore/QDebug> +#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); |