From c583748f4d22b62e5bef54ef0e730e7fc6ce53d9 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 8 Dec 2021 12:09:28 -0700 Subject: [PATCH] tweak DEBUG logs --- Controller.cpp | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Controller.cpp b/Controller.cpp index 0ffd061..c5c0ae5 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -382,19 +382,12 @@ void CController::Dump(const std::shared_ptr p, const std::st codec.assign("NONE"); break; } - std::cout << title << std::endl; - std::cout << "Module: '" << p->GetModule() << "' Stream ID: " << std::showbase << std::hex << ntohs(p->GetStreamId()) << std::noshowbase << " Codec in: " << codec << std::endl; - if (p->IsSecond() || p->IsLast()) - { - std::cout << "Packet is "; - if (p->IsSecond()) - std::cout << "a second packet"; - if (p->IsSecond() && p->IsLast()) - std::cout << " and "; - if (p->IsLast()) - std::cout << "the last packet"; - std::cout << std::endl; - } + std::cout << title << ": Module='" << p->GetModule() << "' Stream ID=" << std::showbase << std::hex << ntohs(p->GetStreamId()) << std::noshowbase << " Codec in is " << codec; + if (p->IsSecond()) + std::cout << " IsSecond"; + if (p->IsLast()) + std::cout << " IsLast"; + std::cout << std::endl; auto width = std::cout.width(2); auto fill = std::cout.fill('0'); if (p->DStarIsSet())