21
21
#include < app/icd/client/DefaultICDClientStorage.h>
22
22
#include < crypto/DefaultSessionKeystore.h>
23
23
#include < crypto/RawKeySessionKeystore.h>
24
+ #include < string>
24
25
25
26
using namespace ::chip;
26
27
using namespace ::chip::app;
@@ -39,15 +40,16 @@ CHIP_ERROR ICDListCommand::RunCommand()
39
40
fprintf (stderr, " +-----------------------------------------------------------------------------+\n " );
40
41
fprintf (stderr, " | %-75s |\n " , " Known ICDs:" );
41
42
fprintf (stderr, " +-----------------------------------------------------------------------------+\n " );
42
- fprintf (stderr, " | %20s | %15s | %15s | %16s |\n " , " Fabric Index:Node ID" , " Start Counter" , " Counter Offset" ,
43
- " MonitoredSubject" );
43
+ fprintf (stderr, " | %20s | %15s | %15s | %16s | %10s | \n " , " Fabric Index:Node ID" , " Start Counter" , " Counter Offset" ,
44
+ " MonitoredSubject" , " ClientType " );
44
45
45
46
while (iter->Next (info))
46
47
{
47
48
fprintf (stderr, " +-----------------------------------------------------------------------------+\n " );
48
- fprintf (stderr, " | %3" PRIu32 " :" ChipLogFormatX64 " | %15" PRIu32 " | %15" PRIu32 " | " ChipLogFormatX64 " |\n " ,
49
+ fprintf (stderr, " | %3" PRIu32 " :" ChipLogFormatX64 " | %15" PRIu32 " | %15" PRIu32 " | " ChipLogFormatX64 " | %u | \n " ,
49
50
static_cast <uint32_t >(info.peer_node .GetFabricIndex ()), ChipLogValueX64 (info.peer_node .GetNodeId ()),
50
- info.start_icd_counter , info.offset , ChipLogValueX64 (info.monitored_subject ));
51
+ info.start_icd_counter , info.offset , ChipLogValueX64 (info.monitored_subject ),
52
+ static_cast <uint8_t >(info.client_type ));
51
53
52
54
static_assert (std::is_same<decltype (CHIPCommand::sSessionKeystore ), Crypto::RawKeySessionKeystore>::value,
53
55
" The following BytesToHex can copy/encode the key bytes from sharedKey to hexadecimal format, which only "
0 commit comments