From: Erwan Velu Date: Tue, 25 Jan 2011 20:35:02 +0000 (+0100) Subject: hdt: Fixing verbose mode X-Git-Tag: syslinux-4.04-pre6~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=460a711a8d3e0c71abe9edaf15cbb366d0f70c81;p=platform%2Fupstream%2Fsyslinux.git 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. --- 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);