[syslinux:master] hdt: Fixing verbose mode

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Sun Feb 6 14:07:24 PST 2011


Commit-ID:  460a711a8d3e0c71abe9edaf15cbb366d0f70c81
Gitweb:     http://syslinux.zytor.com/commit/460a711a8d3e0c71abe9edaf15cbb366d0f70c81
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Tue, 25 Jan 2011 21:35:02 +0100
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Tue, 25 Jan 2011 21:35:02 +0100

hdt: Fixing verbose mode

HDT's images were lacking of a verbose mode. Quiet is the default so we
have to enforce the verbose if needed.


---
 com32/hdt/floppy/hdt.cfg |   11 ++++++++++-
 com32/hdt/hdt.c          |    7 +++----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/com32/hdt/floppy/hdt.cfg b/com32/hdt/floppy/hdt.cfg
index 1350521..8eddb2c 100644
--- a/com32/hdt/floppy/hdt.cfg
+++ b/com32/hdt/floppy/hdt.cfg
@@ -66,7 +66,16 @@ TEXT HELP
  VESA mode is enabled
 ENDTEXT
 COM32 hdt.c32
-APPEND modules_pcimap=modules.pcimap modules_alias=modules.alias pciids=pci.ids vesa nomenu
+APPEND modules_pcimap=modules.pcimap modules_alias=modules.alias pciids=pci.ids vesa nomenu verbose
+
+LABEL verbose-text
+MENU LABEL CLI (Text mode & Verbose)
+TEXT HELP
+ Starts HDT using the Command Line Interface (CLI)
+ VESA mode is disabled
+ENDTEXT
+COM32 hdt.c32
+APPEND modules_pcimap=modules.pcimap modules_alias=modules.alias pciids=pci.ids verbose nomenu
 
 MENU SEPARATOR
 
diff --git a/com32/hdt/hdt.c b/com32/hdt/hdt.c
index 56848b0..2010438 100644
--- a/com32/hdt/hdt.c
+++ b/com32/hdt/hdt.c
@@ -48,12 +48,14 @@ int max_console_lines = MAX_CLI_LINES;
 int main(const int argc, const char *argv[])
 {
     char version_string[256];
-    const char *arg;
     struct s_hardware hardware;
 
     snprintf(version_string, sizeof version_string, "%s %s (%s)",
 	     PRODUCT_NAME, VERSION, CODENAME);
 
+    /* Opening the Syslinux console */
+    init_console(&hardware);
+
     /* Cleaning structures */
     init_hardware(&hardware);
 
@@ -63,9 +65,6 @@ int main(const int argc, const char *argv[])
     /* Detecting parameters */
     detect_parameters(argc, argv, &hardware);
 
-    /* Opening the Syslinux console */
-    init_console(&hardware);
-
     /* Detect hardware */
     detect_hardware(&hardware);
 



More information about the Syslinux-commits mailing list