if (i > 0) fprintf(myIpfixPrinter->stream, "|");
if (i > 0) { fprintf(myIpfixPrinter->stream, "|"); }
int printDataRecord(void* ipfixPrinter, SourceID sourceID, TemplateInfo* templateInfo, uint16_t length, FieldData* data) {	int i;	char buf[40];	IpfixPrinter* myIpfixPrinter = (IpfixPrinter*)ipfixPrinter;	if (myIpfixPrinter->lastTemplate != templateInfo) {		printTemplate(ipfixPrinter, sourceID, templateInfo);		}	for (i = 0; i < templateInfo->fieldCount; i++) {		if (i > 0) fprintf(myIpfixPrinter->stream, "|");		FieldType ftype = templateInfo->fieldInfo[i].type;		FieldData* fdata = data + templateInfo->fieldInfo[i].offset;		int flen = fieldTypeToStringLength(ftype);		if (fieldToString(ftype, fdata, buf, 40) == -1) {			error("Error converting field");			continue;			}		int j;		if (strlen(buf) < flen) for (j = 0; j < flen-strlen(buf); j++) fprintf(myIpfixPrinter->stream, " ");		fprintf(myIpfixPrinter->stream, "%s", buf);		}	fprintf(myIpfixPrinter->stream, "\n");	return 0;	}