From 90d4f89e8bbe2fd5c4719d4d62b099bfe0ce9fc9 Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Mon, 14 Aug 2023 15:07:15 -0700 Subject: [PATCH] Removing extra string creation for log Removin unneccessary string from being created in logging Test: m libsnapshot Change-Id: I123b6a10f349dfb0c275e630b5f02d1cec8c2687 --- fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp index 6d04c6a0c..1dd63731a 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp @@ -174,8 +174,7 @@ void CowWriterV2::InitBatchWrites() { current_data_pos_ = next_data_pos_; } - std::string batch_write = batch_write_ ? "enabled" : "disabled"; - LOG_INFO << "Batch writes: " << batch_write; + LOG_INFO << "Batch writes: " << batch_write_ ? "enabled" : "disabled"; } void CowWriterV2::InitWorkers() {