tell user when command line options are being forced on or off
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 19 Jul 2003 19:16:41 +0000 (19:16 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 19 Jul 2003 19:16:41 +0000 (19:16 +0000)
comedi_calibrate/comedi_calibrate.c

index 7df3a550bfdacbfea8f1c62c9fec8abca5c4b609..31e9bf7df7095443afdb8265466ed3b551a70603 100644 (file)
@@ -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){