From 2aafc6c618b1dcf68265bd9324c8a4c55d8d58f9 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Tue, 30 Jan 2018 14:27:37 +0900 Subject: [PATCH] Fill error code in the log Change-Id: Ia5db7ebc487a8c96d386e3a737b1389f96a589a5 Signed-off-by: Kichan Kwon --- src/runtime_info_usage.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/runtime_info_usage.c b/src/runtime_info_usage.c index 34beca0..2137a1a 100644 --- a/src/runtime_info_usage.c +++ b/src/runtime_info_usage.c @@ -95,7 +95,8 @@ static GVariant *runtime_info_dbus_request_usage_info(runtime_info_usage_type_e case USAGE_TYPE_PROCESS_CPU: if (!pid || size <= 0) { //LCOV_EXCL_START : system error - _E("INVALID_PARAMETER(0x%08x): pid list cannot be null"); + _E("INVALID_PARAMETER(0x%08x): pid list cannot be null", + RUNTIME_INFO_ERROR_INVALID_PARAMETER); if (error) *error = RUNTIME_INFO_ERROR_INVALID_PARAMETER; return NULL; @@ -106,7 +107,8 @@ static GVariant *runtime_info_dbus_request_usage_info(runtime_info_usage_type_e case USAGE_TYPE_APP_CPU: if (!error) { //LCOV_EXCL_START : system error - _E("INVALID_PARAMETER(0x%08x): error parameter cannot be null"); + _E("INVALID_PARAMETER(0x%08x): error parameter cannot be null", + RUNTIME_INFO_ERROR_INVALID_PARAMETER); return NULL; //LCOV_EXCL_STOP } -- 2.7.4