Merge "liblog: add bool to android_log_event_list"

This commit is contained in:
Treehugger Robot 2017-06-05 17:31:34 +00:00 committed by Gerrit Code Review
commit d105aa8496

View file

@ -177,6 +177,12 @@ class android_log_event_list {
return *this;
}
android_log_event_list& operator<<(bool value) {
int retval = android_log_write_int32(ctx, value ? 1 : 0);
if (retval < 0) ret = retval;
return *this;
}
android_log_event_list& operator<<(int64_t value) {
int retval = android_log_write_int64(ctx, value);
if (retval < 0) ret = retval;