- fixed mess with SCWrite / SCPrintf due to changes in conman.c
This commit is contained in:
@ -84,9 +84,9 @@ static int SCTDRIVCheckLimits(void *data, float val,
|
||||
if (GetHdbProperty(self->node, "checklimits", script, 1024)) {
|
||||
status = SctCallInContext(pServ->dummyCon, script,
|
||||
self->node, self->c, &result);
|
||||
if (SctVerbose(self->c)) {
|
||||
SCPrintf(pServ->dummyCon, eWarning,
|
||||
"script %s called with result %s\n ", script, result);
|
||||
if (SctDebugConn(self->c)) {
|
||||
SCPf(SCPureSockWrite, SctDebugConn(self->c), eWarning,
|
||||
"script %s called with result %s\n ", script, result);
|
||||
}
|
||||
if (status == 0) {
|
||||
strlcpy(error, result, errlen);
|
||||
@ -170,8 +170,9 @@ static int SCTDRIVCheckStatus(void *data, SConnection * pCon)
|
||||
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
||||
return HWFault;
|
||||
}
|
||||
if (SctVerbose(self->c)) {
|
||||
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
||||
if (SctDebugConn(self->c)) {
|
||||
SCPf(SCPureSockWrite, SctDebugConn(self->c), eError,
|
||||
" script %s returned %s", script, result);
|
||||
}
|
||||
}
|
||||
if (strstr(result, "run") != NULL) {
|
||||
|
@ -113,9 +113,9 @@ static int SCTDRIVCheckLimits(void *data, float val,
|
||||
if (GetHdbProperty(self->objectNode, "checklimits", script, 1024)) {
|
||||
status = SctCallInContext(pServ->dummyCon, script,
|
||||
self->objectNode, pPriv->c, &result);
|
||||
if (SctVerbose(pPriv->c)) {
|
||||
SCPrintf(pServ->dummyCon, eWarning,
|
||||
"script %s called with result %s\n ", script, result);
|
||||
if (SctDebugConn(pPriv->c)) {
|
||||
SCPf(SCPureSockWrite, SctDebugConn(pPriv->c), eWarning,
|
||||
"script %s called with result %s\n ", script, result);
|
||||
}
|
||||
if (status == 0) {
|
||||
strlcpy(error, result, errlen);
|
||||
@ -208,8 +208,9 @@ static int SCTDRIVCheckStatus(void *data, SConnection * pCon)
|
||||
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
||||
return HWFault;
|
||||
}
|
||||
if (SctVerbose(pPriv->c)) {
|
||||
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
||||
if (SctDebugConn(pPriv->c)) {
|
||||
SCPf(SCPureSockWrite, SctDebugConn(pPriv->c), eError,
|
||||
" script %s returned %s", script, result);
|
||||
}
|
||||
}
|
||||
if (strstr(result, "run") != NULL) {
|
||||
|
Reference in New Issue
Block a user