From 274c73dc242afd559e9131264a60a5f2a04a8bc0 Mon Sep 17 00:00:00 2001 From: Eran Date: Thu, 22 Oct 2020 12:55:51 +0300 Subject: [PATCH] Formatting changes --- src/sensor.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/sensor.cpp b/src/sensor.cpp index 2de97a645b..7ced493d84 100644 --- a/src/sensor.cpp +++ b/src/sensor.cpp @@ -509,13 +509,13 @@ namespace librealsense catch( std::exception const & e ) { _user_count.fetch_add( -1 ); - LOG_ERROR( "acquire_power failed " << e.what() ); + LOG_ERROR( "acquire_power failed: " << e.what() ); throw; } - catch (...) + catch( ... ) { _user_count.fetch_add( -1 ); - LOG_ERROR( "acquire_power failed " ); + LOG_ERROR( "acquire_power failed" ); throw; } } @@ -530,14 +530,15 @@ namespace librealsense { _device->set_power_state( platform::D3 ); } - catch( std::exception const & e ) { - LOG_ERROR( "release_power failed " << e.what() ); + // TODO may need to change the user-count? + LOG_ERROR( "release_power failed: " << e.what() ); } catch( ... ) { - LOG_ERROR( "release_power failed " ); + // TODO may need to change the user-count? + LOG_ERROR( "release_power failed" ); } } }