-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.129 2010-08-17 15:19:39 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.130 2010-08-23 12:42:14 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#define SYSLOG_NAMES
/* fRemote = rfio_fopen( rfioBase, "wb" ); */
char pcDataMover[16]; /* name of the Data Mover */
- int piDataMover; /* number of the Data Mover */
+ int piDataMover = 0; /* number of the Data Mover */
fRemote = rfio_fopen_gsidaq_dm(rfioBase, theArgs->rfio_pcOption,
pcDataMover, &piDataMover,
theArgs->rfio_iCopyMode, theArgs->rfioLustrePath,
theArgs->rfio_iCopyFrac, theArgs->rfio_iMaxFile, theArgs->rfio_iPathConv);
+
+
if (fRemote == NULL) {
- sprintf(msglog, "<E> %s, %d: rfio_fopen_gsidaq_dm: failed to open connection to Data Mover %s: %s", __FILE__, __LINE__,
- rfioBase, strerror(errno));
+ sprintf(msglog, "<E> %s, %d: rfio_fopen_gsidaq_dm: failed to open connection to Data Mover slxdm%d: %s", __FILE__,
+ __LINE__, piDataMover, strerror(errno));
storeLogInfo(theArgs, msglog);
- syslog(LOG_ERR, "%s, %d: rfio_fopen_gsidaq_dm: failed to open connection to Data Mover %s: %s",
- __FILE__, __LINE__, rfioBase, strerror(errno));
+ syslog(LOG_ERR, "%s, %d: rfio_fopen_gsidaq_dm: failed to open connection to Data Mover slxdm%d: %s",
+ __FILE__, __LINE__, piDataMover, strerror(errno));
exit(EXIT_FAILURE);
+ } else {
+ fprintf(stderr, "<I> evtbuild.c, rfio_fopen(): trying to open connection to Data Mover: slxdm%d\n", piDataMover);
+ sprintf(msglog, "<I> rfio_fopen: opening connection to Data Mover: slxdm%d", piDataMover);
}
/* Save to stats */