4 * Copyright (c) 2014 Samsung Electronics Co. Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include "s_indi_log.h"
24 #define LOG_TAG TCORE_LOG_TAG
26 #define LOG_TAG "S_INDI"
29 const char *log_tag_name[MODEM_ID_LAST + 1] = {
30 [MODEM_ID_PRIMARY] = LOG_TAG"/SUBS-0",
31 [MODEM_ID_SECONDARY] = LOG_TAG"/SUBS-1"
34 const char *s_indi_get_log_tag_with_id(unsigned int modem_id)
36 g_assert(modem_id <= MODEM_ID_SECONDARY);
37 return log_tag_name[modem_id];
40 gchar *s_indi_get_log_tag_with_cp_name(const char *cp_name)
42 return g_strdup_printf("%s/%s", LOG_TAG, cp_name);