Whamcloud - gitweb
b=18536
authoranserper <anserper>
Mon, 23 Feb 2009 22:57:16 +0000 (22:57 +0000)
committeranserper <anserper>
Mon, 23 Feb 2009 22:57:16 +0000 (22:57 +0000)
i=ZhiYong Tian
i=Girish Shilamkar

fix for UML

lnet/include/libcfs/libcfs.h
lnet/libcfs/debug.c

index e54ca3e..9c056d0 100644 (file)
@@ -116,6 +116,9 @@ extern cfs_duration_t libcfs_console_min_delay;
 extern unsigned int libcfs_console_backoff;
 extern unsigned int libcfs_debug_binary;
 extern char debug_file_path_arr[1024];
+#ifdef __KERNEL__
+extern char *debug_file_path;
+#endif
 
 int libcfs_debug_mask2str(char *str, int size, int mask, int is_subsys);
 int libcfs_debug_str2mask(int *mask, const char *str, int is_subsys);
index b989216..872aa2a 100644 (file)
@@ -126,7 +126,7 @@ char debug_file_path_arr[1024] = "/r/tmp/lustre-log";
 char debug_file_path_arr[1024] = "/tmp/lustre-log";
 #endif
 /* We need to pass a pointer here, but elsewhere this must be a const */
-static char *debug_file_path = &debug_file_path_arr[0];
+char *debug_file_path = &debug_file_path_arr[0];
 CFS_MODULE_PARM(debug_file_path, "s", charp, 0644,
                 "Path for dumping debug logs, "
                 "set 'NONE' to prevent log dumping");