- removed debugging code

pull/6/head
Michael Zillgith 10 years ago
parent 3969e07256
commit b5fe0992fd

@ -604,37 +604,21 @@ IedConnection_close(IedConnection self)
void void
IedConnection_destroy(IedConnection self) IedConnection_destroy(IedConnection self)
{ {
printf("D1\n");
IedConnection_close(self); IedConnection_close(self);
printf("D2\n");
MmsConnection_destroy(self->connection); MmsConnection_destroy(self->connection);
printf("D3\n");
if (self->logicalDevices != NULL) if (self->logicalDevices != NULL)
LinkedList_destroyDeep(self->logicalDevices, (LinkedListValueDeleteFunction) ICLogicalDevice_destroy); LinkedList_destroyDeep(self->logicalDevices, (LinkedListValueDeleteFunction) ICLogicalDevice_destroy);
printf("D4\n");
#if 0
if (self->enabledReports != NULL) if (self->enabledReports != NULL)
LinkedList_destroyDeep(self->enabledReports, (LinkedListValueDeleteFunction) ClientReport_destroy); LinkedList_destroyDeep(self->enabledReports, (LinkedListValueDeleteFunction) ClientReport_destroy);
#endif
LinkedList_destroyStatic(self->clientControls); LinkedList_destroyStatic(self->clientControls);
printf("D6\n");
Semaphore_destroy(self->stateMutex); Semaphore_destroy(self->stateMutex);
printf("D7\n");
GLOBAL_FREEMEM(self); GLOBAL_FREEMEM(self);
printf("D8\n");
} }
MmsVariableSpecification* MmsVariableSpecification*

@ -920,12 +920,6 @@ IedServer_updateBooleanAttributeValue(IedServer self, DataAttribute* dataAttribu
checkForUpdateTrigger(self, dataAttribute); checkForUpdateTrigger(self, dataAttribute);
} }
else { else {
// struct timeval tv;
//
// gettimeofday(&tv,NULL/*&tz*/);
// printf("UPDATE BOOL: %ld %ld\n",tv.tv_sec, tv.tv_usec);
MmsValue_setBoolean(dataAttribute->mmsValue, value); MmsValue_setBoolean(dataAttribute->mmsValue, value);
checkForChangedTriggers(self, dataAttribute); checkForChangedTriggers(self, dataAttribute);

@ -143,8 +143,6 @@ IedModel_getDevice(IedModel* model, const char* deviceName)
if (strcmp(domainName, deviceName) == 0) if (strcmp(domainName, deviceName) == 0)
return device; return device;
printf("domainename: %s\n", domainName);
device = (LogicalDevice*) device->sibling; device = (LogicalDevice*) device->sibling;
} }

Loading…
Cancel
Save