aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-05 17:48:47 +0100
committerErwan Velu <erwan.velu@free.fr>2009-11-05 17:48:47 +0100
commite36d5560dda72ffefd297a2a86fc72c1acb1533e (patch)
tree72a0e38c0923cdab18df9e1913240f9587abe00d /com32/hdt/hdt-cli.c
parent28d7917dd52b34e2669fa9ad44445124b1d10584 (diff)
parenta0d6887d5f04118069705e3d18bc55b04027ffc4 (diff)
downloadsyslinux-e36d5560dda72ffefd297a2a86fc72c1acb1533e.tar.gz
syslinux-e36d5560dda72ffefd297a2a86fc72c1acb1533e.tar.xz
syslinux-e36d5560dda72ffefd297a2a86fc72c1acb1533e.zip
Merge remote branch 'pam/hdt-0.3.5'
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index fdb10e4a..77b66941 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -755,7 +755,8 @@ void start_auto_mode(struct s_hardware *hardware)
int nb_commands=0;
char *commands[MAX_NB_AUTO_COMMANDS];
- more_printf("Entering Auto mode\n");
+ if (debug)
+ more_printf("\nEntering Auto mode\n");
/* Protecting the auto_label from the strtok modifications */
char *temp=strdup(hardware->auto_label);
@@ -776,14 +777,18 @@ void start_auto_mode(struct s_hardware *hardware)
/* Executing found commands */
for (int i=1;i<=nb_commands;i++) {
if (commands[i]) {
- more_printf("\n");
- more_printf("> Auto mode: Executing %d/%d : '%s'\n",i,nb_commands, commands[i]);
+ more_printf("\n");
+ if (debug)
+ more_printf("> Auto mode: Executing %d/%d : '%s'\n", i, nb_commands, commands[i]);
exec_command(commands[i], hardware);
free(commands[i]);
}
}
- more_printf("Exiting Auto mode\n");
+ if (debug)
+ more_printf("\nExiting Auto mode\n");
+
+ more_printf("\n");
}