When no transport is selected, the error message dumps the available
transports, but not how to actually select one.

Signed-off-by: Karl Palsson <[email protected]>
---
 src/transport/transport.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Submitted to the mailing list because gerrit and openid are too painful to use.

diff --git a/src/transport/transport.c b/src/transport/transport.c
index 3f5337e..78fdd49 100644
--- a/src/transport/transport.c
+++ b/src/transport/transport.c
@@ -239,12 +239,12 @@ COMMAND_HANDLER(handle_transport_init)
 {
        LOG_DEBUG("%s", __func__);
        if (!session) {
-               LOG_ERROR("session's transport is not selected.");
+               LOG_ERROR("session transport not selected. Use 'transport 
select <transport>'");
 
                /* no session transport configured, print transports then fail 
*/
                const char * const *vector = allowed_transports;
                while (*vector) {
-                       LOG_ERROR("allow transport '%s'", *vector);
+                       LOG_ERROR("allowed transport '%s'", *vector);
                        vector++;
                }
                return ERROR_FAIL;
@@ -277,7 +277,7 @@ static int jim_transport_select(Jim_Interp *interp, int 
argc, Jim_Obj * const *a
        switch (argc) {
                case 1:         /* return/display */
                        if (!session) {
-                               LOG_ERROR("session's transport is not 
selected.");
+                               LOG_ERROR("session transport not selected. Use 
'transport select <transport>'");
                                return JIM_ERR;
                        } else {
                                Jim_SetResultString(interp, session->name, -1);
-- 
1.9.3


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to