[PVFS2-developers] [PATCH] initialize.c: Fix debug by environment

Lars Roland lroland at gmail.com
Wed Jun 15 19:23:11 EDT 2005


Trivial patch that fixes debug by the use of environment variables i.e
stuff like

export PVFS2_DEBUGMASK='GOSSIP_CLIENT_DEBUG'

should now make debugging work.


Regards.

Lars Roland



diff -urN pvfs2-1.1.0/src/client/sysint/initialize.c
pvfs2/src/client/sysint/initialize.c
--- pvfs2-1.1.0/src/client/sysint/initialize.c  2005-06-10
00:51:52.000000000 +0200
+++ pvfs2/src/client/sysint/initialize.c        2005-06-15
16:30:05.000000000 +0200
@@ -81,9 +81,7 @@
     gossip_enable_stderr();

     debug_mask_str = getenv("PVFS2_DEBUGMASK");
-    debug_mask = (debug_mask_str ?
-                  PVFS_debug_eventlog_to_mask(debug_mask_str) :
-                  default_debug_mask);
+    debug_mask = (debug_mask_str ? debug_mask_str : default_debug_mask);
     gossip_set_debug_mask(1,debug_mask);

     debug_file = getenv("PVFS2_DEBUGFILE");



More information about the PVFS2-developers mailing list