From ff434dc0ebdea1c89d67f6a34636a9c3944de53d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 21 Feb 2018 15:16:25 +0100 Subject: Print FIG0/24 settings at startup --- src/utils.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src') diff --git a/src/utils.cpp b/src/utils.cpp index d56d08c..d5130b3 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -406,6 +406,28 @@ static void printLinking(const shared_ptr& ensemble) } } } + + etiLog.log(info, " Services in other ensembles"); + if (ensemble->service_other_ensemble.empty()) { + etiLog.level(info) << " None "; + } + + for (const auto& s_oe : ensemble->service_other_ensemble) { + int oe = 1; + + for (const auto& local_service : ensemble->services) { + if (local_service->id == s_oe.service_id) { + oe = 0; + break; + } + } + + etiLog.log(info, " Service 0x%lx", s_oe.service_id); + for (const auto oe : s_oe.other_ensembles) { + etiLog.log(info, " Available in ensemble 0x%04x", oe); + } + etiLog.log(info, " OE=%d", oe); + } } static void printFrequencyInformation(const shared_ptr& ensemble) -- cgit v1.2.3