File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2335,7 +2335,7 @@ static int sjtag_unlock(int argc, char **argv)
23352335 ret = switchtec_sjtag_status_get (cfg .dev , & status );
23362336 if (ret )
23372337 {
2338- switchtec_perror ("Failed to the retrive the SJTAG Status from the device" );
2338+ switchtec_perror ("Failed to retrive the SJTAG Status from the device" );
23392339 ret = -1 ;
23402340 break ;
23412341 }
@@ -2345,7 +2345,7 @@ static int sjtag_unlock(int argc, char **argv)
23452345 printf ("SJTAG Mode: %x\n" , (status .data & 0x03 ));
23462346 }
23472347
2348- /* For Open mode - Unlock status(status.data[3 ]) should 1 */
2348+ /* For Open mode - Unlock status(status.data[2 ]) should 1 */
23492349 if ((((status .data & 0x03 ) == 0x00 ) || ((status .data & 0x04 ) == 0x04 )) && (false == cfg .force_hr ))
23502350 {
23512351 printf ("SJTAG is in Open State\n" );
You can’t perform that action at this time.
0 commit comments