From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain Date: Thu, 9 Oct 2014 12:31:43 +0200 Message-ID: <20141009103143.GA6787@amd> References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> Sender: linux-m68k-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, lguest@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-alpha@vger.kernel.org, linux-am33-list@redhat.com, linux-cris-kernel@axis.com, linux-efi@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m32r-ja@ml.linux-m32r.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, linux-xtensa@linux-xtensa.org, openipmi-developer@lists.sourceforge.net, user-mode-linux-devel@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Thu, 09 Oct 2014 10:31:43 +0000 Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain Message-Id: <20141009103143.GA6787@amd> List-Id: References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, lguest@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-alpha@vger.kernel.org, linux-am33-list@redhat.com, linux-cris-kernel@axis.com, linux-efi@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m32r-ja@ml.linux-m32r.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, linux-xtensa@linux-xtensa.org, openipmi-developer@lists.sourceforge.net, user-mode-linux-devel@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 09 Oct 2014 12:31:46 +0200 (CEST) Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47638 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27010918AbaJIKbozqj0a (ORCPT ); Thu, 9 Oct 2014 12:31:44 +0200 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 1C5D381E56; Thu, 9 Oct 2014 12:31:44 +0200 (CEST) Date: Thu, 9 Oct 2014 12:31:43 +0200 From: Pavel Machek To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, lguest@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-alpha@vger.kernel.org, linux-am33-list@redhat.com, linux-cris-kernel@axis.com, linux-efi@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m32r-ja@ml.linux-m32r.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, linux-xtensa@linux-xtensa.org, openipmi-developer@lists.sourceforge.net, user-mode-linux-devel@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton , Heiko Stuebner , Romain Perier , "Rafael J. Wysocki" , Len Brown , Alexander Graf , Geert Uytterhoeven Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain Message-ID: <20141009103143.GA6787@amd> References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 43120 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: pavel@ucw.cz Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain Date: Thu, 9 Oct 2014 12:31:43 +0200 Message-ID: <20141009103143.GA6787@amd> References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, lguest@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-alpha@vger.kernel.org, linux-am33-list@redhat.com, linux-cris-kernel@axis.com, linux-efi@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m32r-ja@ml.linux-m32r.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, linux-xtensa@linux-xtensa.org, openipmi-developer@lists.sourceforge.net, user-mode-linux-devel@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton Return-path: In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> List-ID: List-Id: linux-parisc.vger.kernel.org Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from atrey.karlin.mff.cuni.cz (atrey.karlin.mff.cuni.cz [195.113.26.193]) by lists.ozlabs.org (Postfix) with ESMTP id 2FEF11A0205 for ; Thu, 9 Oct 2014 21:31:47 +1100 (EST) Date: Thu, 9 Oct 2014 12:31:43 +0200 From: Pavel Machek To: Guenter Roeck Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain Message-ID: <20141009103143.GA6787@amd> References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> Cc: linux-m32r-ja@ml.linux-m32r.org, linux-mips@linux-mips.org, linux-efi@vger.kernel.org, linux-ia64@vger.kernel.org, Heiko Stuebner , Len Brown , linux-xtensa@linux-xtensa.org, devel@driverdev.osuosl.org, linux-s390@vger.kernel.org, lguest@lists.ozlabs.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-sh@vger.kernel.org, Alexander Graf , linux-acpi@vger.kernel.org, Geert Uytterhoeven , xen-devel@lists.xenproject.org, devicetree@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, linux-pm@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, linux-m68k@lists.linux-m68k.org, linux-am33-list@redhat.com, linux-tegra@vger.kernel.org, openipmi-developer@lists.sourceforge.net, linux-metag@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-parisc@vger.kernel.org, linux-cris-kernel@axis.com, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, Andrew Morton , Romain Perier , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: pavel@ucw.cz (Pavel Machek) Date: Thu, 9 Oct 2014 12:31:43 +0200 Subject: [PATCH 01/44] kernel: Add support for poweroff handler call chain In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> Message-ID: <20141009103143.GA6787@amd> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754941AbaJIKb5 (ORCPT ); Thu, 9 Oct 2014 06:31:57 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46930 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbaJIKbt (ORCPT ); Thu, 9 Oct 2014 06:31:49 -0400 Date: Thu, 9 Oct 2014 12:31:43 +0200 From: Pavel Machek To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, lguest@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-alpha@vger.kernel.org, linux-am33-list@redhat.com, linux-cris-kernel@axis.com, linux-efi@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m32r-ja@ml.linux-m32r.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, linux-xtensa@linux-xtensa.org, openipmi-developer@lists.sourceforge.net, user-mode-linux-devel@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-m68k@vger.kernel.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton , Heiko Stuebner , Romain Perier , "Rafael J. Wysocki" , Len Brown , Alexander Graf , Geert Uytterhoeven Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain Message-ID: <20141009103143.GA6787@amd> References: <1412659726-29957-1-git-send-email-linux@roeck-us.net> <1412659726-29957-2-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1412659726-29957-2-git-send-email-linux@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > +/** > + * register_poweroff_handler_simple - Register function to be called to power off > + * the system > + * @handler: Function to be called to power off the system > + * @priority: Handler priority. For priority guidelines see > + * register_poweroff_handler. > + * > + * This is a simplified version of register_poweroff_handler. It does not > + * take a notifier as argument, but a function pointer. The function > + * registers a poweroff handler with specified priority. Poweroff > + * handlers registered with this function can not be unregistered, > + * and only a single poweroff handler can be installed using it. > + * > + * This function must not be called from modules and is therefore > + * not exported. > + * > + * Returns -EBUSY if a poweroff handler has already been registered > + * using register_poweroff_handler_simple. Otherwise returns zero, > + * since atomic_notifier_chain_register() currently always returns zero. > + */ > +int register_poweroff_handler_simple(void (*handler)(void), int priority) > +{ > + char symname[KSYM_NAME_LEN]; > + > + if (poweroff_handler_data.handler) { > + lookup_symbol_name((unsigned long)poweroff_handler_data.handler, > + symname); > + pr_warn("Poweroff function already registered (%s)", symname); > + lookup_symbol_name((unsigned long)handler, symname); > + pr_cont(", cannot register %s\n", symname); > + return -EBUSY; > + } Dunno, are you maybe overdoing the debugging infrastructure a bit? This is not going to happen in production, and if it does happen, developer can look the symbol name himself. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html