print ANSI escapes to stderr

unconditionally print ANSI some escapes (to colorize errors)
to the stderr stream.
This commit is contained in:
Michael Davidsaver
2023-10-27 11:25:44 -07:00
committed by Dirk Zimoch
parent 77a37781af
commit 0502fe25e4
10 changed files with 20 additions and 15 deletions

View File

@@ -17,6 +17,7 @@
#include <epicsStdio.h>
#include <epicsFindSymbol.h>
#include <errlog.h>
#include <registryRecordType.h>
#include <registryDeviceSupport.h>
#include <registryDriverSupport.h>
@@ -248,7 +249,7 @@ registerAllRecordDeviceDrivers(DBBASE *pdbbase)
} catch(std::exception& e) {
dbFinishEntry(&entry);
fprintf(stderr, "Error: %s\n", e.what());
fprintf(stderr, ERL_ERROR ": %s\n", e.what());
return 2;
}
}