diff --git a/ADOrcaApp/src/orca.cpp b/ADOrcaApp/src/orca.cpp index 91b2f77..8dca6cc 100644 --- a/ADOrcaApp/src/orca.cpp +++ b/ADOrcaApp/src/orca.cpp @@ -8,6 +8,15 @@ using namespace std; static const char* driverName = "drvOrca"; +// Error message formatters +#define ERR(msg) \ + asynPrint(pasynUserSelf, ASYN_TRACE_ERROR, "%s::%s: %s\n", driverName, \ + functionName, msg) + +#define ERR_ARGS(fmt, ...) \ + asynPrint(pasynUserSelf, ASYN_TRACE_ERROR, "%s::%s: " fmt "\n", driverName, \ + functionName, __VA_ARGS__); + // Flow message formatters #define FLOW(msg) \ asynPrint(pasynUserSelf, ASYN_TRACE_FLOW, "%s::%s: %s\n", driverName, \