eive-obsw/linux/utility/utility.cpp

14 lines
380 B
C++
Raw Normal View History

2021-07-09 16:57:34 +02:00
#include "OBSWConfig.h"
#include "FSFWConfig.h"
#include "utility.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
2021-07-23 18:20:01 +02:00
#include <cstring>
2021-07-09 16:57:34 +02:00
void utility::handleSystemError(int retcode, std::string function) {
#if OBSW_VERBOSE_LEVEL >= 1
2021-07-23 18:20:01 +02:00
sif::warning << function << ": System call failed with code " << retcode << ": " <<
strerror(retcode) << std::endl;
2021-07-09 16:57:34 +02:00
#endif
}