Merge "liblog: add bool to android_log_event_list"
am: d105aa8496
Change-Id: I3b376d3d5c89fd16c4e5eac5afdb74981f372ee1
This commit is contained in:
commit
16d6ed1845
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue