minor improvement for printout

This commit is contained in:
Robin Müller 2021-08-02 16:19:37 +02:00
parent dee063e259
commit 0e5cfcf28f
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -14,7 +14,7 @@ void utility::printUnixErrorGeneric(const char* const className,
#if FSFW_VERBOSE_LEVEL >= 1
if(outputType == sif::OutputTypes::OUT_ERROR) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << className << "::" << function << ":" << failString << " error: "
sif::error << className << "::" << function << ": " << failString << " error: "
<< strerror(errno) << std::endl;
#else
sif::printError("%s::%s: %s error: %s\n", className, function, failString, strerror(errno));
@ -22,7 +22,7 @@ void utility::printUnixErrorGeneric(const char* const className,
}
else {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::warning << className << "::" << function << ":" << failString << " error: "
sif::warning << className << "::" << function << ": " << failString << " error: "
<< strerror(errno) << std::endl;
#else
sif::printWarning("%s::%s: %s error: %s\n", className, function, failString, strerror(errno));