summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-menu.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-05 17:53:50 +0100
committerErwan Velu <erwan.velu@free.fr>2009-11-05 17:53:50 +0100
commitd9416317b1e5c2be3fd72adf3eba265758e9e575 (patch)
treefd4a924a4fe5c41e37e496fdd643640f84a2a57b /com32/hdt/hdt-menu.c
parent3ef473feddd049c8d82d334b38527d28ddfa057e (diff)
downloadsyslinux-d9416317b1e5c2be3fd72adf3eba265758e9e575.tar.gz
hdt: Switching debug mode in quiet mode
Impact: "quiet" keyword also a quiet display quiet is a new keyword to prevent HDT beeing too much verbose
Diffstat (limited to 'com32/hdt/hdt-menu.c')
-rw-r--r--com32/hdt/hdt-menu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/com32/hdt/hdt-menu.c b/com32/hdt/hdt-menu.c
index abdf0a2c..98eb45e7 100644
--- a/com32/hdt/hdt-menu.c
+++ b/com32/hdt/hdt-menu.c
@@ -51,7 +51,7 @@ int start_menu_mode(struct s_hardware *hardware, char *version_string)
t_menuitem *curr;
char cmd[160];
- if (debug)
+ if (!quiet)
more_printf("Starting Menu (%d menus)\n", hdt_menu.total_menu_count);
curr = showmenus(hdt_menu.main_menu.menu);
/* When we exit the menu, do we have something to do? */
@@ -302,37 +302,37 @@ void compute_main_menu(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware)
void detect_hardware(struct s_hardware *hardware)
{
- if (debug)
+ if (!quiet)
more_printf("CPU: Detecting\n");
cpu_detect(hardware);
- if (debug)
+ if (!quiet)
more_printf("DISKS: Detecting\n");
detect_disks(hardware);
- if (debug)
+ if (!quiet)
more_printf("DMI: Detecting Table\n");
if (detect_dmi(hardware) == -ENODMITABLE) {
printf("DMI: ERROR ! Table not found ! \n");
printf
("DMI: Many hardware components will not be detected ! \n");
} else {
- if (debug)
+ if (!quiet)
more_printf("DMI: Table found ! (version %u.%u)\n",
hardware->dmi.dmitable.major_version,
hardware->dmi.dmitable.minor_version);
}
- if (debug)
+ if (!quiet)
more_printf("VPD: Detecting\n");
detect_vpd(hardware);
#ifdef WITH_PCI
detect_pci(hardware);
- if (debug)
+ if (!quiet)
more_printf("PCI: %d Devices Found\n", hardware->nb_pci_devices);
#endif
- if (debug)
+ if (!quiet)
more_printf("VESA: Detecting\n");
detect_vesa(hardware);
}