From 35ae28907b8882736df7a81999756b5493bb24e6 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 19 Jul 2003 19:16:41 +0000 Subject: [PATCH] tell user when command line options are being forced on or off --- comedi_calibrate/comedi_calibrate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/comedi_calibrate/comedi_calibrate.c b/comedi_calibrate/comedi_calibrate.c index 7df3a55..31e9bf7 100644 --- a/comedi_calibrate/comedi_calibrate.c +++ b/comedi_calibrate/comedi_calibrate.c @@ -230,24 +230,30 @@ ok: "Please file a bug report at http://bugs.comedi.org/ and attach this output.\n" "This output will also allow comedi_calibrate to execute more\n" "quickly in the future.\n"); - if(verbose<1)verbose=1; + if(verbose<1){ + verbose=1; + printf("Forcing option: --verbose\n"); + } if(device_status==STATUS_UNKNOWN){ options.do_reset=1; options.do_dump=1; options.do_calibrate=0; options.do_results=0; + printf("Forcing options: --reset --dump --no-calibrate --no-results\n"); } if(device_status==STATUS_SOME){ options.do_reset=1; options.do_dump=1; options.do_calibrate=1; options.do_results=1; + printf("Forcing options: --reset --dump --calibrate --results\n"); } if(device_status==STATUS_GUESS){ options.do_reset=1; options.do_dump=1; options.do_calibrate=1; options.do_results=1; + printf("Forcing options: --reset --dump --calibrate --results\n"); } } if(verbose>=0){ -- 2.26.2