From 88578e978d1193c9ea54f8641a3e2fe585204c1a Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Tue, 25 May 2021 16:26:38 +0900 Subject: [PATCH] seastore/nvmedevice: use the necessary capture value and fix typo Signed-off-by: Myoungwon Oh --- src/crimson/os/seastore/nvmedevice/nvmedevice.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crimson/os/seastore/nvmedevice/nvmedevice.cc b/src/crimson/os/seastore/nvmedevice/nvmedevice.cc index acbae6bc268..3d79b41c711 100644 --- a/src/crimson/os/seastore/nvmedevice/nvmedevice.cc +++ b/src/crimson/os/seastore/nvmedevice/nvmedevice.cc @@ -54,7 +54,7 @@ write_ertr::future<> PosixNVMeDevice::write( [length](auto e) -> write_ertr::future { logger().error("write: dma_write got error{}", e); return crimson::ct_error::input_output_error::make(); - }).then([=](auto result) -> write_ertr::future<> { + }).then([length](auto result) -> write_ertr::future<> { if (result != length) { logger().error("write: dma_write got error with not proper length"); return crimson::ct_error::input_output_error::make(); @@ -78,7 +78,7 @@ read_ertr::future<> PosixNVMeDevice::read( [length](auto e) -> read_ertr::future { logger().error("read: dma_read got error{}", e); return crimson::ct_error::input_output_error::make(); - }).then([=](auto result) -> read_ertr::future<> { + }).then([length](auto result) -> read_ertr::future<> { if (result != length) { logger().error("read: dma_read got error with not proper length"); return crimson::ct_error::input_output_error::make(); @@ -100,7 +100,7 @@ open_ertr::future<> TestMemory::open( } logger().debug( - "Initializing test memory divice {}", + "Initializing test memory device {}", size); void* addr = ::mmap(