Skip to content

Commit

Permalink
Pull request project-chip#521: NoJira Fix epmap printing uint8 as char
Browse files Browse the repository at this point in the history
Merge in WMN_TOOLS/matter from bugfix/unify_matter_bridge_epmap to silabs

Squashed commit of the following:

commit ac48b79f96dbd5d1800c3193c88856a13b8250d8
Author: Jakob Olesen <[email protected]>
Date:   Tue Jan 24 09:34:14 2023 +0100

    NoJira Fix epmap printing uint8 as char
  • Loading branch information
jsloth authored and jmartinez-silabs committed Aug 22, 2023
1 parent 2e90dd8 commit b9add19
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@ void matter_node_state_monitor::erase_mapper_endpoint(const std::string unid, ch

void matter_node_state_monitor::display_map(std::ostream & os)
{
os << std::setw(10) << "Unify Unid |" << std::setw(10) << "Unify Endpoint |" << std::setw(10) << "Matter Endpoint\n";
const unsigned int columnWidth = 20;
os << std::setw(columnWidth) << "Unify Unid" << "|" << std::setw(columnWidth) << "Unify Endpoint" << "|" << std::setw(columnWidth) << "Matter Endpoint\n";
for (auto ep = bridged_endpoints.begin(); ep != bridged_endpoints.end(); ep++)
{
os << std::setw(10) << ep->second.unify_unid.c_str() << "|" << std::setw(10) << ep->second.unify_endpoint << "|"
<< std::setw(10) << ep->second.matter_endpoint << "\n";
os << std::setw(columnWidth) << ep->second.unify_unid.c_str() << "|" << std::setw(columnWidth) << unsigned(ep->second.unify_endpoint) << "|"
<< std::setw(columnWidth) << ep->second.matter_endpoint << "\n";
}
}

Expand Down

0 comments on commit b9add19

Please sign in to comment.