-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.19 2000-11-08 07:53:22 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.20 2000-11-08 08:27:14 hades Exp $";
#define _POSIX_C_SOURCE 199309L
msglog_usage();
}
+static void argsDump(TheArgs *my) {
+ int i;
+
+ msglog(LOG_DEBUG, "nrOfMsgs: %d\n", my->nrOfMsgs);
+ for (i = 0; i < my->slowCtrlFileCnt; i++) {
+ msglog(LOG_DEBUG, "slowCtrlFiles[%d]: %s\n", i, my->slowCtrlFiles[i]);
+ }
+ msglog(LOG_DEBUG, "outPath: %s\n", my->outPath);
+ msglog(LOG_DEBUG, "outDev: %s\n", my->outDev);
+ msglog(LOG_DEBUG, "runNr: %d\n", my->runNr);
+ msglog(LOG_DEBUG, "expId: %s\n", my->expId);
+ msglog(LOG_DEBUG, "priority: %d\n", my->priority);
+ msglog(LOG_DEBUG, "isStandalone: %d\n", my->isStandalone);
+ msglog(LOG_DEBUG, "queueSize: %d\n", my->queueSize);
+ msglog(LOG_DEBUG, "verbosity: %s\n", my->verbosity);
+}
+
static void argsDefault(TheArgs *my) {
int i;
msglog_usage();
exit(EXIT_FAILURE);
}
+ argsDump(theArgs);
/* normalize experiment id */
theArgs->expId[0] = tolower(theArgs->expId[0]);
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.4 2000-11-08 07:53:23 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.5 2000-11-08 08:27:14 hades Exp $";
#define _XOPEN_SOURCE
#include <unistd.h>
msglog_usage();
}
+static void argsDump(TheArgs *my) {
+ msglog(LOG_DEBUG, "bandWidth: %d\n", my->bandWidth);
+ msglog(LOG_DEBUG, "priority: %d\n", my->priority);
+ msglog(LOG_DEBUG, "isStandalone: %d\n", my->isStandalone);
+ msglog(LOG_DEBUG, "queueSize: %d\n", my->queueSize);
+ msglog(LOG_DEBUG, "verbosity: %s\n", my->verbosity);
+}
+
static void argsDefault(TheArgs *my) {
strcpy(my->outPath, "");
my->bandWidth = 0;
msglog_usage();
exit(EXIT_FAILURE);
}
+ argsDump(theArgs);
if (strcmp(theArgs->outPath, "") == 0) {
usage(argv[0]);
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.9 2000-11-08 07:53:23 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.10 2000-11-08 08:27:14 hades Exp $";
#define _XOPEN_SOURCE
#include <unistd.h>
msglog_usage();
}
+static void argsDump(TheArgs *my) {
+ int i;
+
+ for (i = 0; i < my->inPathCnt; i++) {
+ msglog(LOG_DEBUG, "inPath[%d]: %s\n", i, my->inPath[i]);
+ }
+ msglog(LOG_DEBUG, "nrOfMsgs: %d\n", my->nrOfMsgs);
+ msglog(LOG_DEBUG, "priority: %d\n", my->priority);
+ msglog(LOG_DEBUG, "isStandalone: %d\n", my->isStandalone);
+ msglog(LOG_DEBUG, "queueSize: %d\n", my->queueSize);
+ msglog(LOG_DEBUG, "verbosity: %s\n", my->verbosity);
+}
+
static void argsDefault(TheArgs *my) {
int i;
for (i = 0; i < MAXINPATH; i++) {
- my->inPath[i] = my->inPathS + i * PARAM_MAX_NAME_LEN;
+ my->inPath[i] = my->inPathS[i];
}
my->inPathCnt = 0;
my->nrOfMsgs = 0;
msglog_usage();
exit(EXIT_FAILURE);
}
+ argsDump(theArgs);
if (theArgs->inPathCnt == 0 || theArgs->nrOfMsgs == 0 || theArgs->inPathCnt != theArgs->nrOfMsgs) {
usage(argv[0]);
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/readout.c,v 6.10 2000-11-08 07:53:23 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/readout.c,v 6.11 2000-11-08 08:27:14 hades Exp $";
#define _POSIX_C_SOURCE 199309L
#include <unistd.h>
msglog_usage();
}
+static void argsDump(TheArgs *my) {
+ msglog(LOG_DEBUG, "priority: %d\n", my->priority);
+ msglog(LOG_DEBUG, "isStandalone: %d\n", my->isStandalone);
+ msglog(LOG_DEBUG, "queueSize: %d\n", my->queueSize);
+ msglog(LOG_DEBUG, "verbosity: %s\n", my->verbosity);
+}
+
static void argsDefault(TheArgs *my) {
my->priority = 0;
my->isStandalone = 1;
msglog_usage();
goto bailOut0;
}
+ argsDump(theArgs);
if (NULL == (worker = Worker_initBegin(argv[0], sigHandler, theArgs->priority, theArgs->isStandalone))) {
msglog(LOG_ERR, "connecting to agent: %s\n", strerror(errno));