aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-21 15:16:25 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-21 15:16:25 +0100
commitff434dc0ebdea1c89d67f6a34636a9c3944de53d (patch)
treeb67153bfac92765dd3133ecc3255603f34b5c3f1 /src/utils.cpp
parente4396c73c894c4730d4d28b3caefc26ce41cdd4a (diff)
downloaddabmux-ff434dc0ebdea1c89d67f6a34636a9c3944de53d.tar.gz
dabmux-ff434dc0ebdea1c89d67f6a34636a9c3944de53d.tar.bz2
dabmux-ff434dc0ebdea1c89d67f6a34636a9c3944de53d.zip
Print FIG0/24 settings at startup
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp22
1 files changed, 22 insertions, 0 deletions
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<dabEnsemble>& 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<dabEnsemble>& ensemble)