add: DBG("vm: write_to_vm_fifo: <%.*s>\n",len,buf);
context: static int write_to_vm_fifo(char *fifo, str *lines, int cnt ){    int   fd_fifo;	char *buf, *p;	int len;	int i;	/* contruct buffer first */	len=0;	for (i=0; i<cnt; i++) len+=lines[i].len+1;	buf=pkg_malloc(len+1);	if (!buf) {		LOG(L_ERR, "ERROR: write_to_vm_fifo: no mem\n");		return -1;	}	p=buf;	for (i=0; i<cnt; i++ ) {		memcpy(p, lines[i].s, lines[i].len);		p+=lines[i].len;		*p='\n';		p++;	}			/* open FIFO file stream */    if((fd_fifo = open(fifo,O_WRONLY | O_NONBLOCK)) == -1){		switch(errno){	    	case ENXIO:				LOG(L_ERR,"ERROR: %s: ans_machine deamon is not running !\n",								exports.name);	    	default:				LOG(L_ERR,"ERROR: %s: %s\n",exports.name,strerror(errno));		}		goto error;    }	/* write now (unbuffered straight-down write) */    if (write(fd_fifo, buf,len)==-1) {		LOG(L_ERR, "ERROR: write_to_vm_fifo: write failed: %s\n",					strerror(errno));	}    close(fd_fifo);    DBG("DEBUG: write_to_vm_fifo: write completed\n");	pkg_free(buf);    return 1; /* OK */error:	pkg_free(buf);	return -1;}