archive
arduino
automation
bsp_egse
bsp_hosted
bsp_linux_board
bsp_q7s
bsp_te0720_1cfa
cmake
common
doc
dummies
fsfw
generators
linux
misc
mission
cfdp
controller
core
csp
devices
memory
system
fdir
objects
tree
CMakeLists.txt
acsModeTree.cpp
acsModeTree.h
payloadModeTree.cpp
payloadModeTree.h
system.cpp
system.h
util.cpp
util.h
CMakeLists.txt
tmtc
utility
CMakeLists.txt
mission.mk
scripts
test
thirdparty
tmtc
unittest
watchdog
.clang-format
.dockerignore
.gitignore
.gitmodules
CHANGELOG.md
CMakeLists.txt
Justfile
LICENSE
NOTICE
README.md
docker-compose.yml
q7s-env-em.sh
q7s-env.sh
20 lines
638 B
C++
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;
|
|
}
|
|
}
|
|
}
|