This is an automated email from Gerrit. Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2406
-- gerrit commit 2721fbdf3289ab2b0a47676e54b9e77ba33904ae Author: Karl Palsson <[email protected]> Date: Fri Nov 21 22:05:41 2014 +0000 transport: clarify error message when transport is not selected When no transport is selected, the error message dumps the available transports, but not how to actually select one. Change-Id: I63da2a4b59e3f6cc8d30bd631e41a82636a056ef Signed-off-by: Karl Palsson <[email protected]> Signed-off-by: Paul Fertser <[email protected]> diff --git a/src/transport/transport.c b/src/transport/transport.c index 3f5337e..c57064b 100644 --- a/src/transport/transport.c +++ b/src/transport/transport.c @@ -239,12 +239,13 @@ COMMAND_HANDLER(handle_transport_init) { LOG_DEBUG("%s", __func__); if (!session) { - LOG_ERROR("session's transport is not selected."); + LOG_ERROR("session transport was not selected. Use 'transport select <transport>'"); /* no session transport configured, print transports then fail */ + LOG_ERROR("Transports available:"); const char * const *vector = allowed_transports; while (*vector) { - LOG_ERROR("allow transport '%s'", *vector); + LOG_ERROR("%s", *vector); vector++; } return ERROR_FAIL; @@ -277,7 +278,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 was not selected. Use 'transport select <transport>'"); return JIM_ERR; } else { Jim_SetResultString(interp, session->name, -1); -- ------------------------------------------------------------------------------ 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
