From e09e9a503effcc955b0a11d012916d9fb2554215 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Mon, 5 Jun 2017 07:47:29 -0700 Subject: [PATCH] liblog: add bool to android_log_event_list Test: compile Bug: 62241642 Change-Id: I977702456417ceec21be96ff8463a5ed047560ec --- liblog/include/log/log_event_list.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/liblog/include/log/log_event_list.h b/liblog/include/log/log_event_list.h index 057be5d56..bb1ce3485 100644 --- a/liblog/include/log/log_event_list.h +++ b/liblog/include/log/log_event_list.h @@ -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;