minor improvement for printout
This commit is contained in:
parent
dee063e259
commit
0e5cfcf28f
@ -14,7 +14,7 @@ void utility::printUnixErrorGeneric(const char* const className,
|
|||||||
#if FSFW_VERBOSE_LEVEL >= 1
|
#if FSFW_VERBOSE_LEVEL >= 1
|
||||||
if(outputType == sif::OutputTypes::OUT_ERROR) {
|
if(outputType == sif::OutputTypes::OUT_ERROR) {
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
sif::error << className << "::" << function << ":" << failString << " error: "
|
sif::error << className << "::" << function << ": " << failString << " error: "
|
||||||
<< strerror(errno) << std::endl;
|
<< strerror(errno) << std::endl;
|
||||||
#else
|
#else
|
||||||
sif::printError("%s::%s: %s error: %s\n", className, function, failString, strerror(errno));
|
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 {
|
else {
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
sif::warning << className << "::" << function << ":" << failString << " error: "
|
sif::warning << className << "::" << function << ": " << failString << " error: "
|
||||||
<< strerror(errno) << std::endl;
|
<< strerror(errno) << std::endl;
|
||||||
#else
|
#else
|
||||||
sif::printWarning("%s::%s: %s error: %s\n", className, function, failString, strerror(errno));
|
sif::printWarning("%s::%s: %s error: %s\n", className, function, failString, strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user