From 643ac57a30c2f7c984a7236922cbfb70dcb1ef85 Mon Sep 17 00:00:00 2001 From: Zhaohui Shi Date: Tue, 25 Oct 2022 05:14:22 +0800 Subject: [PATCH] DSU: fix build error when enable DEBUG_DSU_CLIENT (#408) --- src/input/api/DSU/DSUControllerProvider.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/api/DSU/DSUControllerProvider.cpp b/src/input/api/DSU/DSUControllerProvider.cpp index 345e249f..89065be6 100644 --- a/src/input/api/DSU/DSUControllerProvider.cpp +++ b/src/input/api/DSU/DSUControllerProvider.cpp @@ -263,7 +263,7 @@ void DSUControllerProvider::reader_thread() if (ec) { #ifdef DEBUG_DSU_CLIENT - printf(" DSUControllerProvider::ReaderThread: exception %s\n", ex.what()); + printf(" DSUControllerProvider::ReaderThread: exception %s\n", ec.what()); #endif // there's probably no server listening on the given address:port @@ -406,10 +406,10 @@ void DSUControllerProvider::writer_thread() { m_socket.send_to(boost::asio::buffer(msg.get(), msg->GetSize()), m_receiver_endpoint); } - catch (const std::exception&) + catch (const std::exception& ec) { #ifdef DEBUG_DSU_CLIENT - printf(" DSUControllerProvider::WriterThread: exception %s\n", ex.what()); + printf(" DSUControllerProvider::WriterThread: exception %s\n", ec.what()); #endif std::this_thread::sleep_for(std::chrono::milliseconds(250)); }