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

fix for UML

libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/debug.c

index ff6fbd5..0f0fed6 100644 (file)
@@ -56,6 +56,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 9a3e086..78a7323 100644 (file)
@@ -118,7 +118,7 @@ static cfs_waitq_t debug_ctlwq;
 char debug_file_path_arr[1024] = DEBUG_FILE_PATH_DEFAULT;
 
 /* 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");