2 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __NET_WIFI_PRIVATE_H__
18 #define __NET_WIFI_PRIVATE_H__
29 #endif /* __cplusplus */
32 #define LOG_TAG "CAPI_NETWORK_WIFI"
38 #define DEPRECATED_LOG(origin, substitution) \
40 LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed " \
41 "from next release. Use %s() instead.", origin, substitution); \
44 #define WIFI_LOG(log_level, format, args...) \
46 switch (log_level) { \
48 LOGE(format, ## args); \
51 LOGW(format, ## args); \
54 LOGI(format, ## args); \
58 #define SECURE_WIFI_LOG(log_level, format, args...) \
60 switch (log_level) { \
62 SECURE_LOGE(format, ## args); \
65 SECURE_LOGW(format, ## args); \
68 SECURE_LOGI(format, ## args); \
74 #endif /* __cplusplus */