From: anserper Date: Mon, 23 Feb 2009 23:26:37 +0000 (+0000) Subject: b=18536 X-Git-Tag: v1_9_162~27 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ca85d0f7d0c312bacf07842bc57b01c0a8af9180;p=fs%2Flustre-release.git b=18536 i=ZhiYong Tian i=Girish Shilamkar fix for UML --- diff --git a/libcfs/include/libcfs/libcfs_debug.h b/libcfs/include/libcfs/libcfs_debug.h index ff6fbd5..0f0fed6 100644 --- a/libcfs/include/libcfs/libcfs_debug.h +++ b/libcfs/include/libcfs/libcfs_debug.h @@ -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); diff --git a/libcfs/libcfs/debug.c b/libcfs/libcfs/debug.c index 9a3e086..78a7323 100644 --- a/libcfs/libcfs/debug.c +++ b/libcfs/libcfs/debug.c @@ -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");