Revision: 12
http://c-mpi.svn.sourceforge.net/c-mpi/?rev=12&view=rev
Author: jmwozniak
Date: 2010-04-20 04:26:19 +0000 (Tue, 20 Apr 2010)
Log Message:
-----------
Changes...
Modified Paths:
--------------
configure.ac
Removed Paths:
-------------
src/gossip/gs-debug.c
Modified: configure.ac
===================================================================
--- configure.ac 2010-04-20 04:21:15 UTC (rev 11)
+++ configure.ac 2010-04-20 04:26:19 UTC (rev 12)
@@ -460,7 +460,6 @@
src/mpi_tools/module.mk
src/mpirpc/module.mk
src/dense-1/module.mk
-src/kda-1/module.mk
src/kda-2/module.mk
)
@@ -472,7 +471,7 @@
test/cmpi-io/module.mk
test/driver/module.mk
test/gossip/module.mk
- test/mpirpc-2/module.mk
+ test/mpirpc/module.mk
test/mpi_tools/module.mk
)
fi
Deleted: src/gossip/gs-debug.c
===================================================================
--- src/gossip/gs-debug.c 2010-04-20 04:21:15 UTC (rev 11)
+++ src/gossip/gs-debug.c 2010-04-20 04:26:19 UTC (rev 12)
@@ -1,100 +0,0 @@
-#include <string.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "gs-debug.h"
-
-/* a private internal type */
-typedef struct
-{
- const char *keyword;
- uint64_t mask_val;
-} __keyword_mask_t;
-
-#define __DEBUG_ALL ((uint64_t) -1)
-
-/* map all config keywords to pvfs2 debug masks here */
-static __keyword_mask_t s_keyword_mask_map[] =
-{
- /* example level until we have real masks */
- { "example", GS_D_EXAMPLE },
-
- /* NOTE: add additional levels here */
-
- /* No debug output */
- { "none", GS_D_NONE },
- /* Everything */
- { "all", __DEBUG_ALL }
-};
-#undef __DEBUG_ALL
-
-static const int num_keyword_mask_map = (int) \
-(sizeof(s_keyword_mask_map) / sizeof(__keyword_mask_t));
-
-static uint64_t debug_to_mask(__keyword_mask_t *mask_map,
- int num_mask_map, const char *event_logging)
-{
- uint64_t mask = 0;
- char *s = NULL, *t = NULL;
- const char *toks = ", ";
- int i = 0, negate = 0;
-
- if (event_logging)
- {
- s = strdup(event_logging);
- t = strtok(s, toks);
-
- while(t)
- {
- if (*t == '-')
- {
- negate = 1;
- ++t;
- }
-
- for(i = 0; i < num_mask_map; i++)
- {
- if (!strcmp(t, mask_map[i].keyword))
- {
- if (negate)
- {
- mask &= ~mask_map[i].mask_val;
- }
- else
- {
- mask |= mask_map[i].mask_val;
- }
- break;
- }
- }
- t = strtok(NULL, toks);
- }
- free(s);
- }
- return mask;
-}
-
-/*
- * Based on human readable keywords, translate them into
- * a mask value appropriate for the debugging level desired.
- * The 'computed' mask is returned; 0 if no keywords are
- * present or recognized.
- *
- * Prefix a keyword with "-" to turn it off. All keywords
- * processed in specified order.
- */
-uint64_t gs_debug_mask(const char *event_logging)
-{
- return debug_to_mask(s_keyword_mask_map,
- num_keyword_mask_map, event_logging);
-}
-
-/*
- * Local variables:
- * c-indent-level: 4
- * c-basic-offset: 4
- * End:
- *
- * vim: ts=8 sts=4 sw=4 expandtab
- */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|