2 * Copyright (c) 2012 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 DOWNLOAD_PROVIDER2_LOG_H
18 #define DOWNLOAD_PROVIDER2_LOG_H
24 //#define DEBUG_PRINTF
29 #define TRACE_ERROR(format, ARG...) \
31 fprintf(stderr,"[PROVIDER][%s:%d] "format"\n", __FUNCTION__, __LINE__, ##ARG); \
33 #define TRACE_STRERROR(format, ARG...) \
35 fprintf(stderr,"[PROVIDER][%s:%d] "format" [%s]\n", __FUNCTION__, __LINE__, ##ARG, strerror(errno)); \
37 #define TRACE_INFO(format, ARG...) \
39 fprintf(stderr,"[PROVIDER][%s:%d] "format"\n", __FUNCTION__, __LINE__, ##ARG); \
46 #define LOG_TAG "DOWNLOAD_PROVIDER"
47 #define TRACE_ERROR(format, ARG...) \
49 LOGE(format, ##ARG); \
51 #define TRACE_STRERROR(format, ARG...) \
53 LOGE(format" [%s]", ##ARG, strerror(errno)); \
55 #define TRACE_INFO(format, ARG...) \
57 LOGI(format, ##ARG); \
61 #define TRACE_DEBUG_MSG(format, ARG...) ;