aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.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-cli.c
parent3ef473feddd049c8d82d334b38527d28ddfa057e (diff)
downloadsyslinux-d9416317b1e5c2be3fd72adf3eba265758e9e575.tar.gz
syslinux-d9416317b1e5c2be3fd72adf3eba265758e9e575.tar.xz
syslinux-d9416317b1e5c2be3fd72adf3eba265758e9e575.zip
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-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 77b66941..cddb4372 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -755,7 +755,7 @@ void start_auto_mode(struct s_hardware *hardware)
int nb_commands=0;
char *commands[MAX_NB_AUTO_COMMANDS];
- if (debug)
+ if (!quiet)
more_printf("\nEntering Auto mode\n");
/* Protecting the auto_label from the strtok modifications */
@@ -778,14 +778,14 @@ void start_auto_mode(struct s_hardware *hardware)
for (int i=1;i<=nb_commands;i++) {
if (commands[i]) {
more_printf("\n");
- if (debug)
+ if (!quiet)
more_printf("> Auto mode: Executing %d/%d : '%s'\n", i, nb_commands, commands[i]);
exec_command(commands[i], hardware);
free(commands[i]);
}
}
- if (debug)
+ if (!quiet)
more_printf("\nExiting Auto mode\n");
more_printf("\n");