#include "utility.h"

#include <cstring>

#include "FSFWConfig.h"
#include "OBSWConfig.h"
#include "fsfw/serviceinterface/ServiceInterface.h"

void utility::handleSystemError(int retcode, std::string function) {
#if OBSW_VERBOSE_LEVEL >= 1
  sif::warning << function << ": System call failed with code " << retcode << ": "
               << strerror(retcode) << std::endl;
#endif
}