diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-29 11:01:42 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-29 11:01:42 +0000 |
| commit | 8fdde019ada76e1a9e88d11b36c60ca95a38362d (patch) | |
| tree | f98b313f289088a0f9384387c68ec7516031cc7e /release/sysinstall/command.c | |
| parent | d802eeef316094ded4224e2836462ac1a288407b (diff) | |
Notes
Diffstat (limited to 'release/sysinstall/command.c')
| -rw-r--r-- | release/sysinstall/command.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/sysinstall/command.c b/release/sysinstall/command.c index 17289640f5cd..57f621309dd7 100644 --- a/release/sysinstall/command.c +++ b/release/sysinstall/command.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: command.c,v 1.8 1995/05/19 21:30:32 jkh Exp $ + * $Id: command.c,v 1.9 1995/05/20 13:24:33 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -167,14 +167,16 @@ command_execute(void) if (commandStack[i]->cmds[j].type == CMD_SHELL) { msgNotify("Doing %s", commandStack[i]->cmds[j].ptr); ret = vsystem((char *)commandStack[i]->cmds[j].ptr); - msgDebug("Command `%s' returns status %d\n", commandStack[i]->cmds[j].ptr, ret); + if (isDebug()) + msgDebug("Command `%s' returns status %d\n", commandStack[i]->cmds[j].ptr, ret); } else { /* It's a function pointer - call it with the key and the data */ func = (commandFunc)commandStack[i]->cmds[j].ptr; msgNotify("%x: Execute(%s, %s)", func, commandStack[i]->key, commandStack[i]->cmds[j].data); ret = (*func)(commandStack[i]->key, commandStack[i]->cmds[j].data); - msgDebug("Function @ %x returns status %d\n", commandStack[i]->cmds[j].ptr, ret); + if (isDebug()) + msgDebug("Function @ %x returns status %d\n", commandStack[i]->cmds[j].ptr, ret); } } } |
