Browse Source

adapter: add 'adapter speed:' prefix to output

Currently only the adapter speed is printed, which can be rather misleading
when DEBUG_INFO is disabled, all the user sees is
6000 kHz
instead lets print
adapter speed: 6000 kHz

Change-Id: I8f02a63f47344457e3c3d0a6774157fa18206440
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/797
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
tags/v0.6.0-rc2
Spencer Oliver 9 years ago
committed by Freddie Chopin
parent
commit
0288ea0920
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/jtag/adapter.c

+ 2
- 2
src/jtag/adapter.c View File

@@ -432,9 +432,9 @@ COMMAND_HANDLER(handle_adapter_khz_command)
return retval;

if (cur_speed)
command_print(CMD_CTX, "%d kHz", cur_speed);
command_print(CMD_CTX, "adapter speed: %d kHz", cur_speed);
else
command_print(CMD_CTX, "RCLK - adaptive");
command_print(CMD_CTX, "adapter speed: RCLK - adaptive");

return retval;
}


Loading…
Cancel
Save