Skip to content

Commit 297be06

Browse files
shubhamdphuangxuyong
authored andcommitted
[ESP32] Remove dead code and __func__ from error logging (project-chip#32431)
1 parent e873dd5 commit 297be06

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/platform/ESP32/ConfigurationManagerImpl.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ namespace DeviceLayer {
4444

4545
using namespace ::chip::DeviceLayer::Internal;
4646

47-
namespace {
48-
49-
enum
50-
{
51-
kChipProduct_Connect = 0x0016
52-
};
53-
54-
} // unnamed namespace
55-
5647
// TODO: Define a Singleton instance of CHIP Group Key Store here (#1266)
5748

5849
ConfigurationManagerImpl & ConfigurationManagerImpl::GetDefaultInstance()

src/platform/ESP32/nimble/BLEManagerImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ void BLEManagerImpl::HandleC3CharRead(struct ble_gatt_char_context * param)
14621462
exit:
14631463
if (err != CHIP_NO_ERROR)
14641464
{
1465-
ChipLogError(DeviceLayer, "Failed to generate TLV encoded Additional Data (%s)", __func__);
1465+
ChipLogError(DeviceLayer, "Failed to generate TLV encoded Additional Data, err:%" CHIP_ERROR_FORMAT, err.Format());
14661466
}
14671467
return;
14681468
}

0 commit comments

Comments
 (0)