]> git.sur5r.net Git - openocd/commitdiff
transport: fix bug/typo in transport_register cmd
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Fri, 9 Jul 2010 21:02:52 +0000 (22:02 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Fri, 9 Jul 2010 21:02:52 +0000 (22:02 +0100)
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/jtag/core.c
src/jtag/drivers/ft2232.c
src/jtag/transport.c

index 1643d9b64e4827756d499e41902d29c6c4c79c61..f7bbe8dcd7d97f7bbb6c63c296390e064f4ef0e0 100644 (file)
@@ -1359,14 +1359,13 @@ int adapter_init(struct command_context *cmd_ctx)
        if (!transports_are_declared()) {
                static const char *jtag_only[] = { "jtag", NULL, };
                LOG_ERROR("Adapter driver '%s' did not declare "
-                       "which transports it allows; assuming"
+                       "which transports it allows; assuming "
                        "JTAG-only", jtag->name);
                int retval = allow_transports(cmd_ctx, jtag_only);
                if (retval != ERROR_OK)
                        return retval;
        }
 
-
        int requested_khz = jtag_get_speed_khz();
        int actual_khz = requested_khz;
        int retval = jtag_get_speed_readable(&actual_khz);
@@ -1734,7 +1733,6 @@ static int jtag_select(struct command_context *ctx)
         * That works with only C code ... no Tcl glue required.
         */
 
-
        retval = jtag_register_commands(ctx);
 
        if (retval != ERROR_OK)
index f02ae626130ccfc544451cb582d75384fb4f82d0..f06e13b0f77269c5a95e0faa6698638713c514f0 100644 (file)
@@ -3207,7 +3207,7 @@ COMMAND_HANDLER(ft2232_handle_layout_command)
                if (strcmp(l->name, CMD_ARGV[0]) == 0) {
                        layout = l;
                        /* This may also select the transport
-                        * if we only suppport one of them.
+                        * if we only support one of them.
                         */
                        return allow_transports(CMD_CTX,
                                l->transports ? : jtag_only);
index e431feec71f92a4df3dd4d3beaf068c618ebbbb1..cce45fb7a246fd144e03c563a84aefc9e579198f 100644 (file)
@@ -166,7 +166,7 @@ int transport_register(struct transport *new_transport)
        /* splice this into the list */
        new_transport->next = transport_list;
        transport_list = new_transport;
-       LOG_DEBUG("register '%s'", t->name);
+       LOG_DEBUG("register '%s'", new_transport->name);
 
        return ERROR_OK;
 }