From efe2f65be3daff2ebc02021c0636077c465e08c8 Mon Sep 17 00:00:00 2001 From: P-A Loizeau <p.-a.loizeau@gsi.de> Date: Tue, 11 Feb 2025 18:05:55 +0100 Subject: [PATCH] Online unpacking: change printout of unknown link IDs to hex --- algo/unpack/CommonUnpacker.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/algo/unpack/CommonUnpacker.cxx b/algo/unpack/CommonUnpacker.cxx index 9dc30db57..d7cc52db0 100644 --- a/algo/unpack/CommonUnpacker.cxx +++ b/algo/unpack/CommonUnpacker.cxx @@ -3,6 +3,8 @@ Authors: Felix Weiglhofer [committer], Dominik Smith */ #include "CommonUnpacker.h" +#include <iomanip> + using namespace cbm::algo; detail::MSData::MSData(const fles::Timeslice& ts, fles::Subsystem subsystem, gsl::span<u16> legalEqIds) @@ -20,7 +22,8 @@ detail::MSData::MSData(const fles::Timeslice& ts, fles::Subsystem subsystem, gsl const u16 componentId = ts.descriptor(comp, 0).eq_id; if (std::find(legalEqIds.begin(), legalEqIds.end(), componentId) == legalEqIds.end()) { - L_(error) << "Invalid equipment id " << componentId << " for subsystem " << ToString(subsystem); + L_(error) << "Invalid equipment id 0x" << std::hex << std::setw(4) << componentId << std::dec << " for subsystem " + << ToString(subsystem); monitor.errInvalidEqId++; continue; } -- GitLab