[syslinux] [PATCH 03/12] core: Be less verbose at boot

Matt Fleming matt at console-pimps.org
Wed Mar 9 08:00:14 PST 2011


From: Matt Fleming <matt.fleming at linux.intel.com>

Change some printf() calls to dprintf() so that we stop printing
debugging information that is only useful for developers.

Signed-off-by: Matt Fleming <matt.fleming at linux.intel.com>
---
 core/elflink/load_env32.c |    3 ++-
 core/mem/free.c           |    3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c
index 8d0a557..e4e4d62 100644
--- a/core/elflink/load_env32.c
+++ b/core/elflink/load_env32.c
@@ -3,6 +3,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <console.h>
+#include <dprintf.h>
 #include <com32.h>
 #include <syslinux/adv.h>
 #include <syslinux/config.h>
@@ -112,7 +113,7 @@ void start_ui(char *config_file)
 /* note to self: do _*NOT*_ use static key word on this function */
 void load_env32(com32sys_t * regs)
 {
-	printf("Starting 32 bit elf module subsystem...\n");
+	dprintf("Starting 32 bit elf module subsystem...\n");
 	call_constr();
 	openconsole(&dev_rawcon_r, &dev_ansiserial_w);
 	INIT_LIST_HEAD(&cli_history_head);
diff --git a/core/mem/free.c b/core/mem/free.c
index 70b45a3..2908943 100644
--- a/core/mem/free.c
+++ b/core/mem/free.c
@@ -100,8 +100,7 @@ void __inject_free_block(struct free_arena_header *ah)
     size_t a_end = (size_t) ah + ARENA_SIZE_GET(ah->a.attrs);
     size_t n_end;
 
-    //dprintf("inject: %#zx bytes @ %p, heap %u (%p)\n",
-    printf("inject: %#zx bytes @%p, heap%u (%p)\n",
+    dprintf("inject: %#zx bytes @ %p, heap %u (%p)\n",
 	    ARENA_SIZE_GET(ah->a.attrs), ah,
 	    ARENA_HEAP_GET(ah->a.attrs), head);
 
-- 
1.7.4




More information about the Syslinux mailing list