Module: xenomai-forge
Branch: next
Commit: 907ff69eadd07b42a7651a9ec06010ebfde8ac49
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=907ff69eadd07b42a7651a9ec06010ebfde8ac49

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Aug  1 16:05:29 2013 +0200

cobalt/registry: drop debug knob

We don't get any useful information from the registry-specific debug
messages these days.

---

 kernel/cobalt/Kconfig    |    8 --------
 kernel/cobalt/registry.c |   22 ----------------------
 2 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/kernel/cobalt/Kconfig b/kernel/cobalt/Kconfig
index e11b897..2aac57f 100644
--- a/kernel/cobalt/Kconfig
+++ b/kernel/cobalt/Kconfig
@@ -345,14 +345,6 @@ config XENO_OPT_DEBUG_XNLOCK
        sections. Statistics about the longest masking section may be
        found in /proc/xenomai/lock.
 
-config XENO_OPT_DEBUG_REGISTRY
-       bool "Registry monitoring"
-       help
-
-       This option activates debugging output for key registry
-       operations performed by the Xenomai core. This option is
-       useful to detect the source of object naming conflicts.
-
 config XENO_OPT_DEBUG_TIMERS
        bool "Timer monitoring"
        help
diff --git a/kernel/cobalt/registry.c b/kernel/cobalt/registry.c
index 4d86196..5f2deb6 100644
--- a/kernel/cobalt/registry.c
+++ b/kernel/cobalt/registry.c
@@ -42,10 +42,6 @@
 #include <cobalt/kernel/apc.h>
 #include <cobalt/kernel/assert.h>
 
-#ifndef CONFIG_XENO_OPT_DEBUG_REGISTRY
-#define CONFIG_XENO_OPT_DEBUG_REGISTRY  0
-#endif
-
 struct xnobject *registry_obj_slots;
 EXPORT_SYMBOL_GPL(registry_obj_slots);
 
@@ -696,15 +692,6 @@ unlock_and_exit:
 
        xnlock_put_irqrestore(&nklock, s);
 
-#if XENO_DEBUG(REGISTRY)
-       if (ret)
-               printk(XENO_ERR "FAILED to register object %s (%s), status 
%d\n",
-                      key, pnode ? pnode->dirname : "unknown type", ret);
-       else if (pnode)
-               printk(XENO_INFO "registered exported object %s (%s)\n",
-                      key, pnode->dirname);
-#endif
-
        return ret;
 }
 EXPORT_SYMBOL_GPL(xnregistry_enter);
@@ -863,15 +850,6 @@ int xnregistry_remove(xnhandle_t handle)
                goto unlock_and_exit;
        }
 
-#if XENO_DEBUG(REGISTRY)
-       /* We must keep the lock and report early, when the object
-        * slot is still valid. Note: we only report about exported
-        * objects. */
-       if (object->pnode)
-               printk(XENO_INFO "unregistered exported object %s (%s)\n",
-                      object->key, object->pnode->dirname);
-#endif
-
        object->objaddr = NULL;
        object->cstamp = 0;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to