summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWilliam Luh <williamluh@google.com>2015-08-13 10:41:58 -0700
committerThe Android Automerger <android-build@google.com>2015-12-01 17:41:48 -0800
commit5b73585385cfb1389e060a147743b380857e8a17 (patch)
treec8c337f188100b2c2de23dc83d42217ab3cc8a2b /include
parenta6116961338548409b14076eefbef211afc8c3fe (diff)
downloadsystem_core-5b73585385cfb1389e060a147743b380857e8a17.zip
system_core-5b73585385cfb1389e060a147743b380857e8a17.tar.gz
system_core-5b73585385cfb1389e060a147743b380857e8a17.tar.bz2
Add macro to call event logger for errors.
Bug:23180694 Change-Id: I566a290334345f48013029534efef3e08e726e40
Diffstat (limited to 'include')
-rw-r--r--include/log/log.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/log/log.h b/include/log/log.h
index 0b17574..1cdf7bc 100644
--- a/include/log/log.h
+++ b/include/log/log.h
@@ -563,6 +563,12 @@ typedef enum {
#define android_btWriteLog(tag, type, payload, len) \
__android_log_btwrite(tag, type, payload, len)
+#define android_errorWriteLog(tag, subTag) \
+ __android_log_error_write(tag, subTag, -1, NULL, 0)
+
+#define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \
+ __android_log_error_write(tag, subTag, uid, data, dataLen)
+
/*
* IF_ALOG uses android_testLog, but IF_ALOG can be overridden.
* android_testLog will remain constant in its purpose as a wrapper
@@ -612,6 +618,9 @@ typedef enum log_id {
*/
int __android_log_is_loggable(int prio, const char *tag, int def);
+int __android_log_error_write(int tag, const char *subTag, int32_t uid, const char *data,
+ uint32_t dataLen);
+
/*
* Send a simple string to the log.
*/