From 82ffa0b45cca6482c572fb31bab61bbaa38b1962 Mon Sep 17 00:00:00 2001 From: anserper Date: Mon, 23 Feb 2009 22:57:16 +0000 Subject: [PATCH] b=18536 i=ZhiYong Tian i=Girish Shilamkar fix for UML --- lnet/include/libcfs/libcfs.h | 3 +++ lnet/libcfs/debug.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lnet/include/libcfs/libcfs.h b/lnet/include/libcfs/libcfs.h index e54ca3e..9c056d0 100644 --- a/lnet/include/libcfs/libcfs.h +++ b/lnet/include/libcfs/libcfs.h @@ -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); diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index b989216..872aa2a 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -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"); -- 1.8.3.1