[syslinux:elflink] core: Be less verbose at boot

syslinux-bot for Matt Fleming matt.fleming at linux.intel.com
Mon Mar 14 15:33:41 PDT 2011


Commit-ID:  7ffc51e387c10d76541fdd0105347e1d2b426570
Gitweb:     http://syslinux.zytor.com/commit/7ffc51e387c10d76541fdd0105347e1d2b426570
Author:     Matt Fleming <matt.fleming at linux.intel.com>
AuthorDate: Tue, 8 Mar 2011 13:59:02 +0000
Committer:  Matt Fleming <matt.fleming at linux.intel.com>
CommitDate: Tue, 8 Mar 2011 19:17:26 +0000

core: Be less verbose at boot

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);
 



More information about the Syslinux-commits mailing list