@@ -933,7 +933,7 @@ static int crosshair(int argc, char **argv)
933933 .y_range .step = 5 ,
934934 };
935935 const struct argconfig_options opts [] = {
936- DEVICE_OPTION_OPTIONAL ,
936+ DEVICE_OPTION ,
937937 {"all" , 'a' , "" , CFG_NONE , & cfg .all , no_argument ,
938938 "capture all lanes, format must be csv" },
939939 {"crosshair" , 'C' , "FILE" , CFG_FILE_R , & cfg .crosshair_file ,
@@ -1094,7 +1094,6 @@ int eye_observe_dev(struct switchtec_dev *dev, unsigned int error_threshold,
10941094 switchtec_perror ("eye_start" );
10951095 }
10961096
1097- printf ("started\n" );
10981097 ret = switchtec_diag_eye_fetch (dev , & data_out );
10991098
11001099 memcpy (& eye_data [0 ], & data_out , sizeof (struct switchtec_diag_port_eye_data ));
@@ -1127,7 +1126,7 @@ static int eye(int argc, char **argv)
11271126 .v_step = 1 ,
11281127 };
11291128 const struct argconfig_options opts [] = {
1130- DEVICE_OPTION_OPTIONAL ,
1129+ DEVICE_OPTION ,
11311130 {"format" , 'f' , "FMT" , CFG_CHOICES , & cfg .fmt , required_argument ,
11321131 "output format (default: " FMT_DEFAULT_STR ")" ,
11331132 .choices = output_fmt_choices },
@@ -1143,8 +1142,8 @@ static int eye(int argc, char **argv)
11431142
11441143 argconfig_parse (argc , argv , CMD_DESC_EYE , opts , & cfg ,
11451144 sizeof (cfg ));
1146-
1147- ret = eye_observe_dev (cfg .dev , cfg .lane_id , cfg .error_threshold , & gen );
1145+
1146+ ret = eye_observe_dev (cfg .dev , cfg .error_threshold , cfg .lane_id , & gen );
11481147
11491148 return ret ;
11501149}
0 commit comments