Add ERR message formatter
This commit is contained in:
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user