Skip to content

Commit

Permalink
improve event log dump
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Feb 22, 2023
1 parent d75b823 commit 641a0c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/tests/TestEventLogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,8 @@ void ENFORCE_FORMAT(1, 2) SimpleDumpWriter(const char * aFormat, ...)
void PrintEventLog()
{
chip::TLV::TLVReader reader;
size_t elementCount;
chip::app::CircularEventBufferWrapper bufWrapper;
chip::app::EventManagement::GetInstance().GetEventReader(reader, chip::app::PriorityLevel::Debug, &bufWrapper);

chip::TLV::Utilities::Count(reader, elementCount, false);
printf("Found %u elements\n", static_cast<unsigned int>(elementCount));
chip::app::EventManagement::GetInstance().GetEventReader(reader, chip::app::PriorityLevel::Critical, &bufWrapper);
chip::TLV::Debug::Dump(reader, SimpleDumpWriter);
}

Expand Down

0 comments on commit 641a0c2

Please sign in to comment.