diff --git a/sctdriveadapter.c b/sctdriveadapter.c index c3f7e3d5..08b872d2 100644 --- a/sctdriveadapter.c +++ b/sctdriveadapter.c @@ -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) { diff --git a/sctdriveobj.c b/sctdriveobj.c index c47ef8a7..4c69deff 100644 --- a/sctdriveobj.c +++ b/sctdriveobj.c @@ -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) {