Skip to content

Commit

Permalink
Merge "liblog: add bool to android_log_event_list"
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Jun 5, 2017
2 parents daa6602 + e09e9a5 commit d105aa8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions liblog/include/log/log_event_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d105aa8

Please sign in to comment.