Change obsoleted eStatus logging to eLog or eValue

This commit is contained in:
Douglas Clowes
2014-05-16 11:18:20 +10:00
parent 81ed966092
commit abafa6a2e6
7 changed files with 144 additions and 144 deletions

View File

@@ -569,11 +569,11 @@ static void SimStrList(pASIMDriv self, char *name, SConnection *pCon){
char buffer[BUFFLEN];
snprintf(buffer, BUFFLEN, "%s.part = %s\n", name, self->part);
SCWrite(pCon, buffer, eStatus);
SCWrite(pCon, buffer, eValue);
snprintf(buffer, BUFFLEN, "%s.long_name = %s\n", name, self->long_name);
SCWrite(pCon, buffer, eStatus);
SCWrite(pCon, buffer, eValue);
snprintf(buffer, BUFFLEN, "%s.units = %s\n", name, self->units);
SCWrite(pCon, buffer, eStatus);
SCWrite(pCon, buffer, eValue);
return;
}
@@ -646,7 +646,7 @@ int SimAction(SConnection *pCon, SicsInterp *pSics, void *pData,
else {
char buffer[BUFFLEN];
snprintf(buffer, BUFFLEN, "%s.setPos = %f\n", argv[0], oldZero);
SCWrite(pCon, buffer, eStatus);
SCWrite(pCon, buffer, eValue);
return 1;
}
newZero = (currPos - newValue);
@@ -667,12 +667,12 @@ int SimAction(SConnection *pCon, SicsInterp *pSics, void *pData,
else if(strcasecmp("thread0", argv[1]) == 0) {
char line[132];
snprintf(line, 132, "%s.thread0 = %d", argv[0], 1);
SCWrite(pCon, line, eStatus);
SCWrite(pCon, line, eValue);
return 1;
} else if(strcasecmp("posit", argv[1]) == 0) {
char line[132];
snprintf(line, 132, "%s.posit = %f", argv[0], 1.0);
SCWrite(pCon, line, eStatus);
SCWrite(pCon, line, eValue);
return 1;
}
}