From 8583ee73f3d2f454c61daa25739e5906f287f09a Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 26 Jun 1991 17:28:15 +0000 Subject: [PATCH] Added verbose flag --- util/ego/em_ego/em_ego.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/util/ego/em_ego/em_ego.c b/util/ego/em_ego/em_ego.c index cfdb4dd5b..aeaab07aa 100644 --- a/util/ego/em_ego/em_ego.c +++ b/util/ego/em_ego/em_ego.c @@ -80,6 +80,8 @@ static int nphase_args; static char *opt_dir; static char *prog_name; +static int v_flag; + static void cleanup() { @@ -251,6 +253,15 @@ run_phase(phase) fatal("Could not fork"); } else if (pid == 0) { + if (v_flag) { + register int i = 0; + + while (phargs[i]) { + fprint(STDERR, "%s ", phargs[i]); + i++; + } + fprint(STDERR, "\n"); + } (void) execv(phargs[0], phargs); fatal("Could not exec %s", phargs[0]); sys_stop(S_EXIT); @@ -296,6 +307,9 @@ main(argc, argv) /* no continue; IL also needs this */ } break; + case 'v': + v_flag = 1; + break; case 'O': if (argv[0][2] == '2' || argv[0][2] == '\0') continue; if (argv[0][2] == '3') { -- 2.34.1