From 5954002ae0e5a0c0e08d2d798ee300d002d5c5e2 Mon Sep 17 00:00:00 2001 From: tomatze Date: Sat, 12 Jun 2021 18:45:23 +0200 Subject: [PATCH] added missing sif::printDebug --- tcdistribution/CFDPDistributor.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tcdistribution/CFDPDistributor.cpp b/tcdistribution/CFDPDistributor.cpp index 5e07a1db..245fece2 100644 --- a/tcdistribution/CFDPDistributor.cpp +++ b/tcdistribution/CFDPDistributor.cpp @@ -13,10 +13,14 @@ CFDPDistributor::CFDPDistributor(uint16_t setApid, object_id_t setObjectId, CFDPDistributor::~CFDPDistributor() {} CFDPDistributor::TcMqMapIter CFDPDistributor::selectDestination() { -#if FSFW_CPP_OSTREAM_ENABLED == 1 && CFDP_DISTRIBUTOR_DEBUGGING == 1 - store_address_t storeId = this->currentMessage.getStorageId()); - sif:: debug << "CFDPDistributor::handlePacket received: " << storeId.poolIndex << ", " << +#if CFDP_DISTRIBUTOR_DEBUGGING == 1 + store_address_t storeId = this->currentMessage.getStorageId(); +#if FSFW_CPP_OSTREAM_ENABLED == 1 + sif::debug << "CFDPDistributor::handlePacket received: " << storeId.poolIndex << ", " << storeId.packetIndex << std::endl; +#else + sif::printDebug("CFDPDistributor::handlePacket received: %d, %d\n", storeId.poolIndex, storeId.packetIndex); +#endif #endif TcMqMapIter queueMapIt = this->queueMap.end(); if(this->currentPacket == nullptr) {