powerpc: Guard print_device_node_tree() with #if 0

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, October 15, 2008 - 11:59 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dcfcfe...
Commit:     dcfcfe756762682d084f40b96c78507f0d27d379
Parent:     fedcf4c73e1b9c1c594cf12d946ea90b7a47cc08
Author:     Tony Breeds <tony@bakeyournoodle.com>
AuthorDate: Thu Jul 31 16:54:20 2008 +1000
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Wed Aug 20 16:34:57 2008 +1000

    powerpc: Guard print_device_node_tree() with #if 0
    
    Currently print_device_node_tree() isn't called but it can be useful for
    debugging.  Leave the function there but hide it behind '#if 0' to save
    it being rewritten.  If you want to call it you're already editing this
    file anyway. ;P
    
    Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
---
 arch/powerpc/platforms/pseries/eeh_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/eeh_driver.c b/arch/powerpc/platforms/pseries/eeh_driver.c
index 8c1ca47..0ad56ff 100644
--- a/arch/powerpc/platforms/pseries/eeh_driver.c
+++ b/arch/powerpc/platforms/pseries/eeh_driver.c
@@ -41,7 +41,7 @@ static inline const char * pcid_name (struct pci_dev *pdev)
 	return "";
 }
 
-#ifdef DEBUG
+#if 0
 static void print_device_node_tree(struct pci_dn *pdn, int dent)
 {
 	int i;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
powerpc: Guard print_device_node_tree() with #if 0, Linux Kernel Mailing ..., (Wed Oct 15, 11:59 am)