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