XXX: enable logevent to log events laying behind padding
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 17 Dec 2009 15:26:24 +0000 (15:26 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 17 Dec 2009 15:26:24 +0000 (15:26 +0000)
 - maybe generating eventTags with padding would solve the problem better

org.glite.lb.client/src/args.c.T

index 10e1b5b..b213e5f 100644 (file)
@@ -226,7 +226,7 @@ static void read_event(const edg_wll_Args* o, char* arg, char* par)
        if (strcmp(par, "help") == 0)
        {
            // list type
-           int i;
+           int i, k = EDG_WLL_EVENT_UNDEF + 1;
            printf("Available events:   extra options\n");
 /* XXX: holes in edg_wll_EventCode */
            for (i = EDG_WLL_EVENT_UNDEF + 1; i < EDG_WLL_EVENT__LAST; i++)
@@ -236,10 +236,10 @@ static void read_event(const edg_wll_Args* o, char* arg, char* par)
                {
                     int j = 0;
                    printf("  %s:  ", e);
-                   while (eventTags[i][j])
-                       printf("%s ", eventTags[i][j++]);
+                   while (eventTags[k][j])
+                       printf("%s ", eventTags[k][j++]);
                     fputc('\n', stdout);
-
+                   k++;
                    free(e);
                }
            }