]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
BUGFIX
authorhades <hades>
Fri, 10 Nov 2000 17:58:53 +0000 (17:58 +0000)
committerhades <hades>
Fri, 10 Nov 2000 17:58:53 +0000 (17:58 +0000)
hadaq/daq_lib.c
hadaq/daqctrl.c
hadaq/memnet.c

index 58dd54bf75dc1389862cc647919e4297dc3b6e07..9aa0d9bcb6a90382fb02ddb88a0c1e316d4c71ba 100644 (file)
@@ -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 <stdlib.h>
 #include <stdio.h>
@@ -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)
index 1f1fd496bac5e8006ff97813433e97b8e3215c70..78a00d039b6b8f4b1b13cfedabafbb0bdfe24678 100644 (file)
@@ -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 <stdlib.h>
 #include <stddef.h>
@@ -8,6 +8,7 @@ static char rcsId[] = "$Id: daqctrl.c,v 6.3 2000-11-08 07:53:22 hades Exp $";
 #include <signal.h>
 
 #include <allParam.h>
+#include <hadesstd.h>
 
 #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];
index 1c6b183bb803548e2f4b78a7aae9b429eec59377..4287ac4e510a6641b50b80a05fb47f69db98f4c5 100644 (file)
@@ -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 <unistd.h>
@@ -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);