This commit is contained in:
2020-09-04 18:33:06 +02:00
parent 275b29e6a4
commit bb6682c385

View File

@ -515,10 +515,9 @@ int main(int argc, char *argv[]) {
if (! loopActiveFlag) { if (! loopActiveFlag) {
requestReturnCode = ERROR_LOOP_FAILURE; requestReturnCode = ERROR_LOOP_FAILURE;
} }
errlog("error %04x occured\n", errno); errlog("error %04x occured\n", requestReturnCode);
if (! hexOut) { if (! hexOut) {
uint8_t maskedError = requestReturnCode; fprintf(stdout, "%c%c", requestReturnCode, 0);
fprintf(stdout, "%c%c", maskedError, 0);
fflush(stdout); fflush(stdout);
} }
if (! lineMode) { if (! lineMode) {