Add ERR message formatter

This commit is contained in:
Douglas Araujo
2024-09-16 13:11:54 +02:00
parent 7ac340473d
commit 587c23cacc
+9
View File
@@ -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, \