eive-obsw/mission/system/tree/util.cpp
Robin Mueller f90120191f
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
pl ss fixes
2022-11-10 15:12:50 +01:00

20 lines
638 B
C++

#include "util.h"
#include "fsfw/container/FixedMap.h"
#include "fsfw/serviceinterface.h"
void subsystem::checkInsert(ReturnValue_t result, const char* ctx) {
if (result != returnvalue::OK) {
sif::warning << "satsystem::checkInsert: Insertion failed at " << ctx;
if (result == containers::KEY_ALREADY_EXISTS) {
sif::warning << ": Key already exists" << std::endl;
} else if (result == containers::MAP_FULL) {
sif::warning << ": Map full" << std::endl;
} else if (result == containers::LIST_FULL) {
sif::warning << ": List full" << std::endl;
} else {
sif::warning << std::endl;
}
}
}