From fe1999a34a794a776d1900576ddd23ea19ac02e5 Mon Sep 17 00:00:00 2001 From: Rafal Walczyna Date: Fri, 5 Mar 2021 15:25:19 +0100 Subject: [PATCH] [systeminfo] Fix getCapabilities deprecation warning Also code_format was applied. [Verfication] Built successful Change-Id: I8b08f75358e07145bc4791e0c7ffba278b97ce56 Signed-off-by: Rafal Walczyna --- src/systeminfo/systeminfo_api.js | 2 +- src/systeminfo/systeminfo_manager.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/systeminfo/systeminfo_api.js b/src/systeminfo/systeminfo_api.js index 4e4bc7ac..679e99b1 100644 --- a/src/systeminfo/systeminfo_api.js +++ b/src/systeminfo/systeminfo_api.js @@ -796,7 +796,7 @@ SystemInfoCameraFlash.prototype.setBrightness = function(brightness) { var SystemInfo = function() {}; SystemInfo.prototype.getCapabilities = function() { - privUtils_.warn( + privUtils_.deprecationWarn( 'getCapabilities() is deprecated and will be removed' + 'from next release. Use getCapability() instead.', '2.3' diff --git a/src/systeminfo/systeminfo_manager.cc b/src/systeminfo/systeminfo_manager.cc index fbc0d9d0..f10d7e4c 100644 --- a/src/systeminfo/systeminfo_manager.cc +++ b/src/systeminfo/systeminfo_manager.cc @@ -474,7 +474,8 @@ SysteminfoManager::SysteminfoManager(SysteminfoInstance* instance) LoggerD("WIFI initialization succeed"); error = wifi_manager_set_rssi_level_changed_cb(wifi_manager_, OnWifiLevelChangedCb, this); if (WIFI_MANAGER_ERROR_NONE != error) { - std::string log_msg = "Setting wifi listener failed: " + std::string(get_error_message(error)); + std::string log_msg = + "Setting wifi listener failed: " + std::string(get_error_message(error)); LoggerE("%s", log_msg.c_str()); } else { LoggerD("Setting wifi listener succeed"); -- 2.34.1