pws: Compiler warnings and more debug about the name app_id
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 9 Apr 2020 13:57:30 +0000 (16:57 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 9 Apr 2020 13:59:04 +0000 (16:59 +0300)
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Idc2ae5f66b9af58770f49f04af85eb31f66e5437

homescreen/src/applicationlauncher.cpp
pws/pws.cpp

index bb9f646..cb9c9b3 100644 (file)
@@ -52,6 +52,7 @@ int ApplicationLauncher::launch(const QString &application)
     int result = -1;
     HMI_DEBUG("HomeScreen","ApplicationLauncher launch %s.", application.toStdString().c_str());
 
+    fprintf(stdout, "ApplicationLauncher::launch with %s\n", application.toStdString().c_str());
     if (m_launcher->connection_is_set())
            result = m_launcher->start(application);
 
index 3818dc7..78796cb 100644 (file)
@@ -344,6 +344,8 @@ int
 pws_start_process(struct pws_data_source *pws, const char *afm_name)
 {
        int rid = -1;
+
+       fprintf(stdout, "pws_start_process() with afm_name %s\n", afm_name);
        if (pws_do_call(pws, "start", afm_name) < 0)
                return -1;
 
@@ -485,7 +487,7 @@ pws_get_list_runnables(struct pws_data_source *pws,  struct json_object **json)
                                JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE));
 #endif
                if (items == 0) {
-                       fprintf(stdout, "pws_get_list_runnables() turn items %d, bails sooner\n", items);
+                       fprintf(stdout, "pws_get_list_runnables() turn items %ld, bails sooner\n", items);
                        *json = NULL;
                        return items;
                }
@@ -494,6 +496,6 @@ pws_get_list_runnables(struct pws_data_source *pws,  struct json_object **json)
                *json = result;
        }
 
-       fprintf(stdout, "pws_get_list_runnables() turn items %d\n", items);
+       fprintf(stdout, "pws_get_list_runnables() turn items %ld\n", items);
        return items;
 }