Formatting, indentation

This commit is contained in:
2025-09-16 18:36:11 -04:00
parent 8fd8826f8d
commit 9e00cd1530
4 changed files with 13 additions and 8 deletions
+6 -6
View File
@@ -133,14 +133,14 @@ void BroadcastListener::start(void)
isListening.store(true);
// Start the first async receive operation
startReceive();
std::cout << "BroadcastListener started on port " << listeningPort
<< std::endl;
std::cout << __func__ << ": BroadcastListener started on port "
<< listeningPort << std::endl;
}
catch (const boost::system::system_error& e)
{
isListening.store(false);
std::cerr << "Failed to start BroadcastListener: " << e.what()
<< std::endl;
std::cerr << __func__ << ": Failed to start BroadcastListener: "
<< e.what() << std::endl;
throw;
}
}
@@ -172,11 +172,11 @@ void BroadcastListener::stop(void)
try
{
socket.close();
std::cout << "BroadcastListener stopped" << std::endl;
std::cout << __func__ << ": BroadcastListener stopped" << std::endl;
}
catch (const boost::system::system_error& e)
{
std::cerr << "Error stopping BroadcastListener: " << e.what()
std::cerr << __func__ << ": Error stopping BroadcastListener: " << e.what()
<< std::endl;
throw;
}
+2 -1
View File
@@ -45,7 +45,8 @@ void livoxProto1_destroyDeviceReq(
+ ": DeviceManager not initialized");
}
protoState.deviceManager->destroyDeviceReq(device, callback);
protoState.deviceManager->destroyDeviceReq(
device, callback);
}
void livoxProto1_main(
+3 -1
View File
@@ -36,8 +36,10 @@ void exitMarionetteLoop()
void marionetteFinalizeReqCb(bool success)
{
if (!success) {
if (!success)
{
std::cerr << __func__ << ": Failed to finalize Marionette." << '\n';
// Fallthrough.
}
std::cout << __func__ << ": Marionette finalized." << '\n';
exitMarionetteLoop();
+2
View File
@@ -357,6 +357,7 @@ public:
{
std::cerr << __func__ << ": Failed to attach device: "
<< spec->deviceIdentifier << "\n";
// Fallthrough.
}
if (!context->loop.incrementSuccessOrFailureAndTestForCompletionDueTo(
@@ -430,6 +431,7 @@ public:
{
std::cerr << __func__ << ": Failed to detach device: "
<< spec->deviceIdentifier << "\n";
// Fallthrough.
}
if (!context->loop.incrementSuccessOrFailureAndTestForCompletionDueTo(