From b6b840f6072e950f2ded719ae51badfba7566fa8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 6 Oct 2025 17:21:13 +0200 Subject: Add frequency_information hot-reload --- src/utils.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/utils.cpp') diff --git a/src/utils.cpp b/src/utils.cpp index 7ea6293..fc4c864 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -171,8 +171,6 @@ void printOutputs(const vector >& outputs) void printServices(const vector >& services) { - int index = 0; - etiLog.log(info, "--- Services list ---"); for (auto service : services) { @@ -200,7 +198,6 @@ void printServices(const vector >& services) clusters_s.push_back(std::to_string(cluster)); } etiLog.level(info) << " clusters: " << boost::join(clusters_s, ","); - ++index; } } @@ -279,8 +276,6 @@ void printComponent(const shared_ptr& component, const std::shared void printSubchannels(const vec_sp_subchannel& subchannels) { - int index = 0; - int total_num_cu = 0; etiLog.log(info, "--- Subchannels list ---"); @@ -330,7 +325,6 @@ void printSubchannels(const vec_sp_subchannel& subchannels) etiLog.log(info, " size (CU): %i", subchannel->getSizeCu()); total_num_cu += subchannel->getSizeCu(); - ++index; } etiLog.log(info, "Total ensemble size (CU): %i", total_num_cu); @@ -338,12 +332,12 @@ void printSubchannels(const vec_sp_subchannel& subchannels) static void printLinking(const shared_ptr& ensemble) { + const auto linkagesets = ensemble->get_linkagesets(); etiLog.log(info, " Linkage Sets"); - if (ensemble->linkagesets.empty()) { + if (linkagesets.empty()) { etiLog.level(info) << " None "; } - for (const auto& ls : ensemble->linkagesets) { - + for (const auto& ls : linkagesets) { etiLog.level(info) << " set " << ls->get_name(); etiLog.log(info, " LSN 0x%04x", ls->lsn); etiLog.level(info) << " active " << (ls->active ? "true" : "false"); @@ -399,11 +393,12 @@ static void printLinking(const shared_ptr& ensemble) static void printFrequencyInformation(const shared_ptr& ensemble) { + const auto frequency_information = ensemble->get_frequency_information(); etiLog.log(info, " Frequency Information"); - if (ensemble->frequency_information.empty()) { + if (frequency_information.empty()) { etiLog.level(info) << " None "; } - for (const auto& fi : ensemble->frequency_information) { + for (const auto& fi : frequency_information) { etiLog.level(info) << " FI " << fi.uid; etiLog.level(info) << " OE=" << (fi.other_ensemble ? 1 : 0); switch (fi.rm) { -- cgit v1.2.3