Fill error code in the log 51/168651/1
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 30 Jan 2018 05:27:37 +0000 (14:27 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 30 Jan 2018 05:28:26 +0000 (14:28 +0900)
Change-Id: Ia5db7ebc487a8c96d386e3a737b1389f96a589a5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/runtime_info_usage.c

index 34beca0..2137a1a 100644 (file)
@@ -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
                }