From 2b841d2f371e7e254b47499fb4d3f24e267206b5 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 7 Sep 2023 16:19:01 +0200 Subject: [PATCH] some tweaks for error handling code --- mission/tmtc/PusLiveDemux.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mission/tmtc/PusLiveDemux.cpp b/mission/tmtc/PusLiveDemux.cpp index e900c540..4d78a188 100644 --- a/mission/tmtc/PusLiveDemux.cpp +++ b/mission/tmtc/PusLiveDemux.cpp @@ -23,19 +23,18 @@ ReturnValue_t PusLiveDemux::demultiplexPackets(StorageManagerIF& tmStore, } else if (result == StorageManagerIF::DATA_STORAGE_FULL) { #if FSFW_CPP_OSTREAM_ENABLED == 1 sif::error << "PusLiveDemux::handlePacket: Store too full to create data copy" << std::endl; - uint8_t fillCounts[10]; + uint8_t fillCounts[16]; uint8_t written = 0; tmStore.getFillCount(fillCounts, &written); - sif::error << "Fill counts: "; + sif::error << "Fill counts: ["; for (uint8_t fillIdx = 0; fillIdx < written; fillIdx++) { sif::error << fillCounts[fillIdx]; if (fillIdx < written - 1) { sif::error << ", "; } } - sif::error << std::endl; + sif::error << "]" << std::endl; #endif - continue; } } else { message.setStorageId(origStoreId);