2 * Copyright (c) 2016 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.
19 #define LOG_TAG "APP_CORE_UI_BASE"
26 # define EXPORT_API __attribute__ ((visibility("default")))
30 # define _ERR(fmt, arg...) \
31 do { fprintf(stderr, "appcore: "fmt"\n", ##arg); } while (0)
33 # define _INFO(fmt, arg...) \
34 do { fprintf(stdout, fmt"\n", ##arg); } while (0)
36 # define _DBG(fmt, arg...) \
38 if (getenv("APPCORE_DEBUG")) { \
39 fprintf(stdout, fmt"\n", ##arg); \
43 # define _ERR(fmt, arg...) \
45 fprintf(stderr, "appcore: "fmt"\n", ##arg); \
48 # define _INFO(...) LOGI(__VA_ARGS__)
49 # define _DBG(...) LOGD(__VA_ARGS__)