From: anserper Date: Mon, 23 Feb 2009 22:57:16 +0000 (+0000) Subject: b=18536 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_8_1~2^4~19 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=82ffa0b45cca6482c572fb31bab61bbaa38b1962;p=fs%2Flustre-release.git b=18536 i=ZhiYong Tian i=Girish Shilamkar fix for UML --- 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");