colorize errors and warnings
Use ERL_ERROR and ERL_WARNING git grep -li 'errlogPrintf.*[" ]error' | xargs sed -i -E -e 's|(errlogPrintf.*[" ])(error)|\1" ERL_ERROR "|g' git grep -li 'errlogPrintf.*[" ]warn' | xargs sed -i -E -e 's|(errlogPrintf.*[" ])(warn[a-zA-Z]*)|\1" ERL_WARNING "|g'
This commit is contained in:
@@ -36,12 +36,12 @@
|
||||
|
||||
#define checkStatus(status,message) \
|
||||
if((status)) { \
|
||||
errlogPrintf("epicsMutex %s failed: error %s\n", \
|
||||
errlogPrintf("epicsMutex %s failed: " ERL_ERROR " %s\n", \
|
||||
(message), strerror((status))); \
|
||||
}
|
||||
#define checkStatusQuit(status,message,method) \
|
||||
if(status) { \
|
||||
errlogPrintf("epicsMutex %s failed: error %s\n", \
|
||||
errlogPrintf("epicsMutex %s failed: " ERL_ERROR " %s\n", \
|
||||
(message), strerror((status))); \
|
||||
cantProceed((method)); \
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
#define checkStatus(status,message) \
|
||||
if ((status)) { \
|
||||
errlogPrintf("epicsSpin %s failed: error %s\n", \
|
||||
errlogPrintf("epicsSpin %s failed: " ERL_ERROR " %s\n", \
|
||||
(message), strerror((status))); \
|
||||
}
|
||||
|
||||
|
||||
@@ -94,12 +94,12 @@ static epicsThreadOSD *createImplicit(void);
|
||||
|
||||
#define checkStatus(status,message) \
|
||||
if((status)) {\
|
||||
errlogPrintf("%s error %s\n",(message),strerror((status))); \
|
||||
errlogPrintf("%s " ERL_ERROR " %s\n",(message),strerror((status))); \
|
||||
}
|
||||
|
||||
#define checkStatusQuit(status,message,method) \
|
||||
if(status) { \
|
||||
errlogPrintf("%s error %s\n",(message),strerror((status))); \
|
||||
errlogPrintf("%s " ERL_ERROR " %s\n",(message),strerror((status))); \
|
||||
cantProceed((method)); \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user