]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Mon, 20 Nov 2000 10:07:20 +0000 (10:07 +0000)
committerhades <hades>
Mon, 20 Nov 2000 10:07:20 +0000 (10:07 +0000)
hadaq/ansiTape.c
hadaq/evtbuild.c
hadaq/memnet.c
hadaq/netmem.c

index e3ed213af92306eb97049539a473e536aaff2263..75a4bfc064a09929ece50e8d621c6708a51e0b8a 100644 (file)
@@ -93,10 +93,11 @@ AnsiTape *openAnsiTape(const char* filename) {
                        msglog(LOG_ERR, "Could not jump over the filemark!\n");
                        exit(-2);
                }
-               label = allocMem(80*sizeof(char));
+               label = allocMem(81*sizeof(char));
                do {
                        stat = read(tape, label, 80);
-                       printf("EOF Label read te get fileSeqNum:\n%s\nSo it is.\n", label);
+                       label[80] = '\0';
+                       msglog(LOG_INFO, "EOF Label read te get fileSeqNum:\n%s\n", label);
                        if (i == 0) {
                                sscanf(label, "%*31c%4d", &fileSeqNum);
                                fileSeqNum++;
index 50eba6a748d317455d34502fb79fa477c542be59..47f134017db963fd69edd9fc5b71da77169a43a0 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.23 2000-11-19 17:41:03 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.24 2000-11-20 10:08:55 hades Exp $";
 
 #define _POSIX_C_SOURCE 199309L
 
@@ -134,7 +134,7 @@ static void argsDefault(TheArgs *my) {
 static int argsFromCL(TheArgs *my, int argc, char *argv[]) {
        int i;
 
-       while ((i = getopt(argc, argv, "am:f:s:r:o:d:p:v:x:")) != -1) {
+       while ((i = getopt(argc, argv, "am:f:s:r:o:d:q:p:v:x:")) != -1) {
                switch (i) {
                case 'm':
                        my->nrOfMsgs = atoi(optarg);
index 4287ac4e510a6641b50b80a05fb47f69db98f4c5..3be94348947a7425ae6fdbf0e53d69a1fd471571 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.6 2000-11-10 17:58:53 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.7 2000-11-20 10:11:42 hades Exp $";
 
 #define _XOPEN_SOURCE
 #include <unistd.h>
@@ -44,7 +44,7 @@ static int min(int a, int b)
 static void usage(const char *progName)
 {
        msglog(LOG_ERR, "Usage: %s [-a (agentCtrl)] -o outPath\n", progName);
-       msglog(LOG_ERR, "Usage: [-w bandwidth] [-p priority]\n");
+       msglog(LOG_ERR, "Usage: [-w bandwidth] [-p priority] [-q queueSize]\n");
        msglog_usage();
 }
 
@@ -69,7 +69,7 @@ static void argsDefault(TheArgs *my) {
 static int argsFromCL(TheArgs *my, int argc, char *argv[]) {
        int i;
 
-       while ((i = getopt(argc, argv, "aw:o:p:v:")) != -1) {
+       while ((i = getopt(argc, argv, "aw:q:o:p:v:")) != -1) {
                switch (i) {
                case 'w':
                        my->bandWidth = atoi(optarg);
index e1b9b483e1e1d3b4766d3c071e3c98d526b502ed..36c630bb46a7a02dcc0eccbf93de6e500cf2bf64 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.10 2000-11-08 08:27:14 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.11 2000-11-20 10:10:40 hades Exp $";
 
 #define _XOPEN_SOURCE
 #include <unistd.h>
@@ -72,7 +72,7 @@ static void argsDefault(TheArgs *my) {
 static int argsFromCL(TheArgs *my, int argc, char *argv[]) {
   int i;
 
-  while ((i = getopt(argc, argv, "ai:m:p:v:")) != -1) {
+  while ((i = getopt(argc, argv, "ai:m:q:p:v:")) != -1) {
     switch (i) {
     case 'm':
       my->nrOfMsgs = atoi(optarg);