From 2f7789558c98d8b79b41d62ac97f5bd6de557dc9 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Tue, 26 Mar 2019 10:35:18 +0800 Subject: Change log macro to AFB_XXX 1. using binder log macro instead of HMI_LOG. 2. unify log using level as below: AFB_ERROR: fatal error or serious error may occur. AFB_WARNING: input parameter error or not serious error. AFB_NOTICE: alert sth. AFB_INFO: print input argument or sth else. AFB_DEBUG: prompt for calling location. 3. delete hmi-debug.h. Change-Id: I203864ced39c418d2f792faa50ab2c009deb9d02 Signed-off-by: wang_zhiqiang --- src/hs-proxy.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/hs-proxy.cpp') diff --git a/src/hs-proxy.cpp b/src/hs-proxy.cpp index 0f5e78c..f0ee5f0 100644 --- a/src/hs-proxy.cpp +++ b/src/hs-proxy.cpp @@ -15,7 +15,6 @@ */ #include "hs-proxy.h" -#include "hmi-debug.h" const char _afm_main[] = "afm-main"; @@ -36,7 +35,7 @@ const char _afm_main[] = "afm-main"; */ static void api_callback(void *closure, struct json_object *object, const char *error, const char *info, afb_api_t api) { - HMI_DEBUG("homescreen-service","asynchronous call, error=%s, info=%s, object=%s.", error, info, json_object_get_string(object)); + AFB_INFO("asynchronous call, error=%s, info=%s, object=%s.", error, info, json_object_get_string(object)); } /** @@ -54,7 +53,7 @@ static void api_callback(void *closure, struct json_object *object, const char * */ static void api_call(afb_api_t api, const char *service, const char *verb, struct json_object *args) { - HMI_DEBUG("homescreen-service","service=%s verb=%s, args=%s.", service, verb, json_object_get_string(args)); + AFB_INFO("service=%s verb=%s, args=%s.", service, verb, json_object_get_string(args)); afb_api_call(api, service, verb, args, api_callback, nullptr); } @@ -77,7 +76,7 @@ static int api_call_sync(afb_api_t api, const char *service, const char *verb, s { char *error = nullptr, *info = nullptr; int ret = afb_api_call_sync(api, service, verb, args, object, &error, &info); - HMI_DEBUG("homescreen-service","synchronous call, error=%s, info=%s.", error, info); + AFB_INFO("synchronous call, error=%s, info=%s.", error, info); return ret; } -- cgit 1.2.3-korg