提交 eafc7559 编写于 作者: G Greg Kroah-Hartman

staging: lustre: remove LPLU, LPLD, and LPLX defines

They are variable modifiers, come on, no need for a special define just
for them...

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 143f378c
...@@ -75,11 +75,4 @@ ...@@ -75,11 +75,4 @@
# define LPX64 "%#llx" # define LPX64 "%#llx"
# define LPX64i "%llx" # define LPX64i "%llx"
/*
* long_ptr_t & ulong_ptr_t, same to "long" for gcc
*/
# define LPLU "%lu"
# define LPLD "%ld"
# define LPLX "%#lx"
#endif #endif
...@@ -342,7 +342,7 @@ void libcfs_debug_dumplog_internal(void *arg) ...@@ -342,7 +342,7 @@ void libcfs_debug_dumplog_internal(void *arg)
if (strncmp(libcfs_debug_file_path_arr, "NONE", 4) != 0) { if (strncmp(libcfs_debug_file_path_arr, "NONE", 4) != 0) {
snprintf(debug_file_name, sizeof(debug_file_name) - 1, snprintf(debug_file_name, sizeof(debug_file_name) - 1,
"%s.%ld." LPLD, libcfs_debug_file_path_arr, "%s.%ld.%ld", libcfs_debug_file_path_arr,
get_seconds(), (long_ptr_t)arg); get_seconds(), (long_ptr_t)arg);
printk(KERN_ALERT "LustreError: dumping log to %s\n", printk(KERN_ALERT "LustreError: dumping log to %s\n",
debug_file_name); debug_file_name);
...@@ -463,7 +463,7 @@ EXPORT_SYMBOL(libcfs_debug_set_level); ...@@ -463,7 +463,7 @@ EXPORT_SYMBOL(libcfs_debug_set_level);
void libcfs_log_goto(struct libcfs_debug_msg_data *msgdata, const char *label, void libcfs_log_goto(struct libcfs_debug_msg_data *msgdata, const char *label,
long_ptr_t rc) long_ptr_t rc)
{ {
libcfs_debug_msg(msgdata, "Process leaving via %s (rc=" LPLU " : " LPLD libcfs_debug_msg(msgdata, "Process leaving via %s (rc=%lu : %ld : %#lx)\n",
" : " LPLX ")\n", label, (ulong_ptr_t)rc, rc, rc); label, (ulong_ptr_t)rc, rc, rc);
} }
EXPORT_SYMBOL(libcfs_log_goto); EXPORT_SYMBOL(libcfs_log_goto);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册