Whamcloud - gitweb
LU-15317 libcfs: Remove D_TTY
[fs/lustre-release.git] / libcfs / libcfs / debug.c
index 10e3eee..8873cfb 100644 (file)
@@ -53,7 +53,7 @@ module_param(libcfs_subsystem_debug, int, 0644);
 MODULE_PARM_DESC(libcfs_subsystem_debug, "Lustre kernel debug subsystem mask");
 
 unsigned int libcfs_debug = (D_CANTMASK | D_NETERROR | D_HA | D_CONFIG |
-                            D_IOCTL | D_LFSCK | D_TTY);
+                            D_IOCTL | D_LFSCK);
 EXPORT_SYMBOL(libcfs_debug);
 module_param(libcfs_debug, int, 0644);
 MODULE_PARM_DESC(libcfs_debug, "Lustre kernel debug mask");
@@ -188,6 +188,7 @@ module_param_call(libcfs_console_min_delay, param_set_console_min_delay,
 #endif
 MODULE_PARM_DESC(libcfs_console_min_delay, "Lustre kernel debug console min delay (jiffies)");
 
+#ifndef HAVE_PARAM_SET_UINT_MINMAX
 static int param_set_uint_minmax(const char *val,
                                 cfs_kernel_param_arg_t *kp,
                                 unsigned int min, unsigned int max)
@@ -205,6 +206,7 @@ static int param_set_uint_minmax(const char *val,
        *((unsigned int *)kp->arg) = num;
        return 0;
 }
+#endif
 
 static int param_set_uintpos(const char *val,
                             cfs_kernel_param_arg_t *kp)
@@ -730,19 +732,3 @@ int libcfs_debug_mark_buffer(const char *text)
 
 #undef DEBUG_SUBSYSTEM
 #define DEBUG_SUBSYSTEM S_LNET
-
-long libcfs_log_return(struct libcfs_debug_msg_data *msgdata, long rc)
-{
-       libcfs_debug_msg(msgdata, "Process leaving (rc=%lu : %ld : %lx)\n",
-                        rc, rc, rc);
-       return rc;
-}
-EXPORT_SYMBOL(libcfs_log_return);
-
-void libcfs_log_goto(struct libcfs_debug_msg_data *msgdata, const char *label,
-                    long rc)
-{
-       libcfs_debug_msg(msgdata, "Process leaving via %s (rc=%lu : %ld"
-                        " : %#lx)\n", label, rc, rc, rc);
-}
-EXPORT_SYMBOL(libcfs_log_goto);