X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fhla%2Fhla_interface.c;h=81cac4886d26181b631f8602a970d9e893c429b5;hp=ae33f54e08d4aeab62ebc4ab29d737e53be7a416;hb=1e6970dafdccfec388d1a816c2019f9c6b26e338;hpb=0ebf1eb94d06f892d8699bb35a8af65c721b5f5f diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index ae33f54e08..81cac4886d 100644 --- a/src/jtag/hla/hla_interface.c +++ b/src/jtag/hla/hla_interface.c @@ -72,7 +72,7 @@ int hl_interface_init_target(struct target *t) * can setup the private pointer in the tap structure * if the interface match the tap idcode */ - res = hl_if.layout->api->idcode(hl_if.fd, &t->tap->idcode); + res = hl_if.layout->api->idcode(hl_if.handle, &t->tap->idcode); if (res != ERROR_OK) return res; @@ -137,7 +137,7 @@ int hl_interface_init_reset(void) * we will attempt it again */ if (hl_if.param.connect_under_reset) { jtag_add_reset(0, 1); - hl_if.layout->api->assert_srst(hl_if.fd, 0); + hl_if.layout->api->assert_srst(hl_if.handle, 0); } else { jtag_add_reset(0, 0); } @@ -243,7 +243,7 @@ COMMAND_HANDLER(interface_handle_trace_command) } if (CMD_ARGC == 2) { - f = fopen(CMD_ARGV[0], "a"); + f = fopen(CMD_ARGV[1], "a"); if (!f) return ERROR_COMMAND_SYNTAX_ERROR; }