X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-clientmanager.cpp;h=66fd699f49e986fd0040dec6cc2a266d8df67eac;hb=refs%2Ftags%2F10.0.3;hp=8f02953c68b024363413a7e06763df31ddcd9920;hpb=1863fee02210ab55dec6671eb04cb355a9a87e26;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-clientmanager.cpp b/src/hs-clientmanager.cpp index 8f02953..66fd699 100644 --- a/src/hs-clientmanager.cpp +++ b/src/hs-clientmanager.cpp @@ -172,8 +172,8 @@ is_application_running(afb_req_t request, std::string id) afm_proxy.ps(request->api, &jobj); if (jobj) { - const int len = json_object_array_length(jobj); - for (int i = 0; i < len; i++) { + size_t len = json_object_array_length(jobj); + for (size_t i = 0; i < len; i++) { struct json_object *aid; struct json_object *item = json_object_array_get_idx(jobj, i); @@ -236,11 +236,11 @@ int HS_ClientManager::handleRequest(afb_req_t request, const char *verb, const c if (strcasecmp(verb, "showWindow") == 0) { ret = is_application_running(request, id); if (ret == AFB_REQ_NOT_STARTED_APPLICATION) { - AFB_INFO("%s is not running. Will attempt to start it"); + AFB_INFO("%s is not running. Will attempt to start it", appid); return ret; } } - AFB_INFO("%s found to be running. Forwarding request to the client"); + AFB_INFO("%s found to be running. Forwarding request to the client", appid); ret = ip->second->handleRequest(request, verb); } else {