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.
28 #define MODEM_ID_FIRST MODEM_ID_PRIMARY
29 #define MODEM_ID_LAST MODEM_ID_SECONDARY
31 #ifdef FEATURE_LOG_MODE_VERBOSE
32 #define s_indi_log_v(...) dbg(__VA_ARGS__)
34 #define s_indi_log_v(...) \
39 #ifdef FEATURE_LOG_TX_RX_DATA
40 #define s_indi_log_txrx(id,...) \
42 const char *tag = s_indi_get_log_tag_with_id(id); \
43 info_ex(tag, __VA_ARGS__); \
46 #define s_indi_log_txrx(id,...) \
51 #define s_indi_log_ex(name,...) \
53 gchar *tag = s_indi_get_log_tag_with_cp_name(name); \
54 dbg_ex(tag, __VA_ARGS__); \
58 inline const char *s_indi_get_log_tag_with_id(unsigned int modem_id);
59 inline char *s_indi_get_log_tag_with_cp_name(const char *cp_name);