From: Alan Bowman Date: Tue, 5 Nov 2013 22:25:51 +0000 (+0000) Subject: Correct argument numbering in trace command X-Git-Tag: v0.8.0-rc1~177 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=6adc1ced89ddcee92de2597229c7dbb654f53137;hp=dc15e0a295f73d8438bf59b94475d9b9f4120b68 Correct argument numbering in trace command The trace command was opening a file named with the source frequency. This change correctly passes the filename that is specified. Change-Id: Ia2eb8eda0e1e0f4f44b05c3a0ce7bef3bda51446 Signed-off-by: Alan Bowman Reviewed-on: http://openocd.zylin.com/1800 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index ae33f54e08..9193133005 100644 --- a/src/jtag/hla/hla_interface.c +++ b/src/jtag/hla/hla_interface.c @@ -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; }