From 85a3f4ffb83674bcc0893ec77347a80e757f07ef Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Thu, 1 Jun 2023 14:58:35 +0900 Subject: [PATCH] [Service] common log-util Code clean, use common log-util in ml-agent code. Signed-off-by: Jaeyun Jung --- c/src/ml-api-service-agent-client.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/c/src/ml-api-service-agent-client.c b/c/src/ml-api-service-agent-client.c index 9454a66..ab0761d 100644 --- a/c/src/ml-api-service-agent-client.c +++ b/c/src/ml-api-service-agent-client.c @@ -152,7 +152,7 @@ ml_service_get_pipeline (const char *name, char **pipeline_desc) } if (*pipeline_desc != NULL) { - g_warning (WARN_MSG_DPTR_SET_OVER, "char *pipeline_desc = NULL"); + _ml_logw (WARN_MSG_DPTR_SET_OVER, "char *pipeline_desc = NULL"); *pipeline_desc = NULL; } @@ -213,7 +213,7 @@ ml_service_launch_pipeline (const char *name, ml_service_h * h) } if (*h != NULL) { - g_warning (WARN_MSG_DPTR_SET_OVER, "ml_service_h *h = NULL"); + _ml_logw (WARN_MSG_DPTR_SET_OVER, "ml_service_h *h = NULL"); } *h = NULL; @@ -546,7 +546,7 @@ ml_service_model_get (const char *name, const unsigned int version, } if (*info != NULL) { - g_warning (WARN_MSG_DPTR_SET_OVER, "ml_option_h info = NULL"); + _ml_logw (WARN_MSG_DPTR_SET_OVER, "ml_option_h info = NULL"); } *info = NULL; @@ -648,7 +648,7 @@ ml_service_model_get_activated (const char *name, ml_option_h * info) } if (*info != NULL) { - g_warning (WARN_MSG_DPTR_SET_OVER, "ml_option_h info = NULL"); + _ml_logw (WARN_MSG_DPTR_SET_OVER, "ml_option_h info = NULL"); } *info = NULL; @@ -841,7 +841,6 @@ ml_service_model_get_all (const char *name, ml_option_h * info_list[], } } - *info_list = _info_list; *num = n; -- 2.7.4