]> git.sur5r.net Git - openocd/commitdiff
Correct argument numbering in trace command
authorAlan Bowman <alan.michael.bowman@gmail.com>
Tue, 5 Nov 2013 22:25:51 +0000 (22:25 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 6 Nov 2013 12:59:04 +0000 (12:59 +0000)
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>
src/jtag/hla/hla_interface.c

index ae33f54e08d4aeab62ebc4ab29d737e53be7a416..919313300576e932e14debb749d027a03439c0ce 100644 (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;
        }