From b497e6f317e66e5dcfa4d3ed08c6e563c66e7a2a Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Tue, 22 Aug 2023 09:41:09 -0700 Subject: [PATCH] Fix one liner Ensuring that the expression is evaluated before being outputed. In response to comment from aosp/2708333 Test: th Change-Id: I073c143f1c4e32af11e235ce782947b250117dc5 --- fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp index d3c3d59a7..ee445a2d0 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp @@ -174,7 +174,7 @@ void CowWriterV2::InitBatchWrites() { current_data_pos_ = next_data_pos_; } - LOG_INFO << "Batch writes: " << batch_write_ ? "enabled" : "disabled"; + LOG_INFO << "Batch writes: " << (batch_write_ ? "enabled" : "disabled"); } void CowWriterV2::InitWorkers() {