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://git.sur5r.net/?a=commitdiff_plain;h=6adc1ced89ddcee92de2597229c7dbb654f53137;p=openocd 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 ae33f54e..91931330 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; }