From 587c23cacc7d574464d1f64fd80b552eb5777e91 Mon Sep 17 00:00:00 2001 From: Douglas Araujo Date: Mon, 16 Sep 2024 13:11:54 +0200 Subject: [PATCH] Add ERR message formatter --- ADOrcaApp/src/orca.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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, \