[PATCH 3/10] Remove some DEBUG code.

Anton Blanchard anton at samba.org
Sun Apr 11 14:03:21 EST 2010


The test_bss and test_data debug printfs are of little use, so remove them.

Signed-off-by: Anton Blanchard <anton at samba.org>
---

Index: yaboot/second/yaboot.c
===================================================================
--- yaboot.orig/second/yaboot.c	2010-04-01 13:17:24.000000000 +1100
+++ yaboot/second/yaboot.c	2010-04-01 13:18:07.000000000 +1100
@@ -154,10 +154,6 @@ int fgcolor = 15;
 int bgcolor = 0;
 #endif /* CONFIG_COLOR_TEXT */
 
-#if DEBUG
-static int test_bss;
-static int test_data = 0;
-#endif
 static int pause_after;
 static char *pause_message = "Type go<return> to continue.\n";
 static char given_bootargs[1024];
@@ -204,10 +200,6 @@ yaboot_start (unsigned long r3, unsigned
 
      /* A few useless DEBUG_F's */
      DEBUG_F("reloc_offset :  %ld         (should be 0)\n", reloc_offset());
-     DEBUG_F("test_bss     :  %d         (should be 0)\n", test_bss);
-     DEBUG_F("test_data    :  %d         (should be 0)\n", test_data);
-     DEBUG_F("&test_data   :  %p\n", &test_data);
-     DEBUG_F("&test_bss    :  %p\n", &test_bss);
      DEBUG_F("linked at    :  0x%08x\n", TEXTADDR);
 
      /* ask the OF info if we're a chrp or pmac */


More information about the Yaboot-devel mailing list