Skip to content

Commit 74c7f50

Browse files
committed
code review
1 parent 774d183 commit 74c7f50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/mfg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)