1e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris/* 2e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * Copyright (C) 2014 The Android Open Source Project 3e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * 4e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * Licensed under the Apache License, Version 2.0 (the "License"); 5e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * you may not use this file except in compliance with the License. 6e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * You may obtain a copy of the License at 7e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * 8e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * http://www.apache.org/licenses/LICENSE-2.0 9e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * 10e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * Unless required by applicable law or agreed to in writing, software 11e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * distributed under the License is distributed on an "AS IS" BASIS, 12e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * See the License for the specific language governing permissions and 14e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris * limitations under the License. 15e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris */ 16e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris 17e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris#ifndef _LIBBACKTRACE_BACKTRACE_LOG_H 18e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris#define _LIBBACKTRACE_BACKTRACE_LOG_H 19e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris 20e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris#define LOG_TAG "libbacktrace" 21e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris 22e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris#include <log/log.h> 23e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris 24e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris// Macro to log the function name along with the warning message. 25e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris#define BACK_LOGW(format, ...) \ 26e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris ALOGW("%s: " format, __PRETTY_FUNCTION__, ##__VA_ARGS__) 27e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris 28e29609106033a48a6128664668d22bf4fb42a7eeChristopher Ferris#endif // _LIBBACKTRACE_BACKTRACE_LOG_H 29