 +{
 +	struct dlm_resource *r = lp->posix->resource;
 +
-+	log_debug("remove %x,%"PRIx64" %u",
-+		  r->name.ln_type, r->name.ln_number, current->pid);
++	log_debug("remove %x,%"PRIx64"", r->name.ln_type, r->name.ln_number);
 +
 +	do_dlm_unlock_sync(lp);
 +	put_lock(lp);

+#define LOCK_DLM_DEBUG_SIZE     (0)
+#define MAX_DEBUG_MSG_LEN       (0)
+#endif
+
+static char *                   debug_buf;
+static unsigned int             debug_size;
+static unsigned int             debug_point;
+static int                      debug_wrap;
+static spinlock_t               debug_lock;
+static struct proc_dir_entry *  debug_proc_entry = NULL;
+
+
+void lock_dlm_debug_log(const char *fmt, ...)

+
+	n = 0;
+	/* n = snprintf(buf, size, "%s ", dlm->fsname); */
+	n = snprintf(buf, size, "%u ", current->pid);
+	size -= n;
+
+	va_start(va, fmt);
