fsfw/src/fsfw_hal/linux/utility.cpp
Robin Müller af7ebd3564
Some checks failed
fsfw/fsfw/pipeline/pr-development There was a failure building this commit
Merge branch 'development' into mueller/refactor-logging-with-fmt
2022-07-18 15:12:55 +02:00

14 lines
311 B
C++

#include "fsfw_hal/linux/utility.h"
#include <cerrno>
#include <cstring>
#include "fsfw/serviceinterface.h"
void utility::handleIoctlError(const char* const customPrintout) {
if (customPrintout != nullptr) {
FSFW_LOGW(customPrintout);
}
FSFW_LOGW("Error code {} | {}\n", errno, strerror(errno));
}