summaryrefslogtreecommitdiffstats
path: root/libbacktrace/Backtrace.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2013-10-30 21:28:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-10-30 21:28:22 +0000
commit8c58086c54a23d33e915852a1355a171b09679cc (patch)
tree9eaeff7f903e0b3d2776420914e3533bc735faec /libbacktrace/Backtrace.h
parent36d44740dd045403ae615b8dd6dac8b9a4e9f5bf (diff)
parent8ed46278bee3cfc4c216f3a1524744019b693200 (diff)
downloadsystem_core-8c58086c54a23d33e915852a1355a171b09679cc.zip
system_core-8c58086c54a23d33e915852a1355a171b09679cc.tar.gz
system_core-8c58086c54a23d33e915852a1355a171b09679cc.tar.bz2
Merge "More libbacktrace fixes."
Diffstat (limited to 'libbacktrace/Backtrace.h')
-rw-r--r--libbacktrace/Backtrace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbacktrace/Backtrace.h b/libbacktrace/Backtrace.h
index b89bc89..00f0a10 100644
--- a/libbacktrace/Backtrace.h
+++ b/libbacktrace/Backtrace.h
@@ -21,6 +21,10 @@
#include <sys/types.h>
+// Macro to log the function name along with the warning message.
+#define BACK_LOGW(format, ...) \
+ ALOGW("%s: " format, __PRETTY_FUNCTION__, ##__VA_ARGS__)
+
class BacktraceImpl {
public:
virtual ~BacktraceImpl() { }