From: hades Date: Fri, 10 Nov 2000 17:58:53 +0000 (+0000) Subject: BUGFIX X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=51357f40f7b5145394034f420192f64e267edb2e;p=daqdata.git BUGFIX --- diff --git a/hadaq/daq_lib.c b/hadaq/daq_lib.c index 58dd54b..9aa0d9b 100644 --- a/hadaq/daq_lib.c +++ b/hadaq/daq_lib.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Id: daq_lib.c,v 6.3 2000-11-08 07:53:22 hades Exp $"; +static char rcsId[] = "$Id: daq_lib.c,v 6.4 2000-11-10 17:58:53 hades Exp $"; #include #include @@ -25,11 +25,14 @@ int Daq_init(const char *n, const Param *p) int Daq_start(const char *n, const Param *p) { int i; + char *argv[2]; char file[PARAM_MAX_VALUE_LEN]; Param_getString(p, n, "file", &i, file); + argv[0] = n; + argv[1] = NULL; - return Worker_start(file, &n); + return Worker_start(file, argv); } int Daq_stop(const char *n, const Param *p) diff --git a/hadaq/daqctrl.c b/hadaq/daqctrl.c index 1f1fd49..78a00d0 100644 --- a/hadaq/daqctrl.c +++ b/hadaq/daqctrl.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Id: daqctrl.c,v 6.3 2000-11-08 07:53:22 hades Exp $"; +static char rcsId[] = "$Id: daqctrl.c,v 6.4 2000-11-10 17:58:53 hades Exp $"; #include #include @@ -8,6 +8,7 @@ static char rcsId[] = "$Id: daqctrl.c,v 6.3 2000-11-08 07:53:22 hades Exp $"; #include #include +#include #include "daq_lib.h" @@ -37,6 +38,7 @@ int main(int argc, char *argv[]) { usage(argv[0]); exit(EXIT_FAILURE); } + msglog_setlevel(argv[0], "info"); command = argv[1]; name = argv[2]; diff --git a/hadaq/memnet.c b/hadaq/memnet.c index 1c6b183..4287ac4 100644 --- a/hadaq/memnet.c +++ b/hadaq/memnet.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.5 2000-11-08 08:27:14 hades Exp $"; +static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.6 2000-11-10 17:58:53 hades Exp $"; #define _XOPEN_SOURCE #include @@ -49,6 +49,7 @@ static void usage(const char *progName) } static void argsDump(TheArgs *my) { + msglog(LOG_DEBUG, "outPath: %s\n", my->outPath); msglog(LOG_DEBUG, "bandWidth: %d\n", my->bandWidth); msglog(LOG_DEBUG, "priority: %d\n", my->priority); msglog(LOG_DEBUG, "isStandalone: %d\n", my->isStandalone);