From: hadaq Date: Mon, 23 Aug 2010 12:42:14 +0000 (+0000) Subject: Correct Data Mover name in msg. Sergey X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=034e90f5baeeb864196a52e041aae426b51a3810;p=daqdata.git Correct Data Mover name in msg. Sergey --- diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 111b5a0..100b14d 100644 --- a/hadaq/evtbuild.c +++ b/hadaq/evtbuild.c @@ -1,4 +1,4 @@ -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 @@ -2094,20 +2094,25 @@ static int rfio_openConnection(TheArgs *theArgs, TheStats *theStats) /* 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, " %s, %d: rfio_fopen_gsidaq_dm: failed to open connection to Data Mover %s: %s", __FILE__, __LINE__, - rfioBase, strerror(errno)); + sprintf(msglog, " %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, " evtbuild.c, rfio_fopen(): trying to open connection to Data Mover: slxdm%d\n", piDataMover); + sprintf(msglog, " rfio_fopen: opening connection to Data Mover: slxdm%d", piDataMover); } /* Save to stats */