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 <alan.michael.bowman@gmail.com>
Reviewed-on: http://openocd.zylin.com/1800
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Alan Bowman 2013-11-05 22:25:51 +00:00 committed by Spencer Oliver
parent dc15e0a295
commit 6adc1ced89
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}