jtag: fix some minor typo 16/6216/2
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 28 Jan 2021 12:05:53 +0000 (13:05 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 22 May 2021 09:06:38 +0000 (10:06 +0100)
Minor typos found by the new checkpatch boosted by the dictionary
provided by 'codespell'.

Change-Id: I101c76a638805d77c1ff356cf0f027552389e5d3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6216
Tested-by: jenkins
src/jtag/aice/aice_interface.c
src/jtag/aice/aice_usb.c
src/jtag/core.c
src/jtag/drivers/cmsis_dap_usb_bulk.c
src/jtag/drivers/jtag_dpi.c
src/jtag/drivers/nulink_usb.c
src/jtag/drivers/usb_blaster/usb_blaster.c
src/jtag/minidriver.h

index 160eb1105a0a9a97a81a2ff090b750c41470207a..86e9d16c105488c8269dcc4a2d1d762de0504795 100644 (file)
@@ -436,7 +436,7 @@ static const struct command_registration aice_subcommand_handlers[] = {
                .handler = &aice_handle_aice_desc_command,
                .mode = COMMAND_CONFIG,
                .help = "set the aice device description",
-               .usage = "[desciption string]",
+               .usage = "[description string]",
        },
        {
                .name = "serial",
index 6c452a3276d76c5ef8afc96be77af46b979db834..3a0e48522d2bbd0d891877c412ae8c83754e8342 100644 (file)
@@ -2627,7 +2627,7 @@ static int aice_usb_halt(uint32_t coreid)
 
        if (core_info[coreid].debug_under_dex_on) {
                if (core_info[coreid].dex_use_psw_on == false) {
-                       /* under debug 'debug mode', force $psw to 'debug mode' bahavior */
+                       /* under debug 'debug mode', force $psw to 'debug mode' behavior */
                        /* !!!NOTICE!!! this is workaround for debug 'debug mode'.
                         * it is only for debugging 'debug exception handler' purpose.
                         * after openocd detaches from target, target behavior is
index 147df28549be301b7779658d0063cfb12c86ab68..2166374cc74c732de6c22965ebcf5e6279c0f47d 100644 (file)
@@ -490,7 +490,7 @@ void jtag_add_tlr(void)
 
 /**
  * If supported by the underlying adapter, this clocks a raw bit sequence
- * onto TMS for switching betwen JTAG and SWD modes.
+ * onto TMS for switching between JTAG and SWD modes.
  *
  * DO NOT use this to bypass the integrity checks and logging provided
  * by the jtag_add_pathmove() and jtag_add_statemove() calls.
@@ -1343,7 +1343,7 @@ static int jtag_validate_ircapture(void)
        int chain_pos = 0;
        int retval;
 
-       /* when autoprobing, accomodate huge IR lengths */
+       /* when autoprobing, accommodate huge IR lengths */
        for (tap = NULL, total_ir_length = 0;
                        (tap = jtag_tap_next_enabled(tap)) != NULL;
                        total_ir_length += tap->ir_length) {
index a588b1bd8ddbc95f59e588aa46b322c3dcd9ad7a..c42bab28f5301559e193cdf0d86a273f87fbac10 100644 (file)
@@ -262,7 +262,7 @@ static int cmsis_dap_usb_open(struct cmsis_dap *dap, uint16_t vids[], uint16_t p
                                 * - config asked explicitly for an interface number
                                 * - the device has only one interface
                                 * The later two cases should be honored only if we know
-                                * we are on the rigt device */
+                                * we are on the right device */
                                bool intf_identified_reliably = cmsis_dap_in_interface_str
                                                        || (device_identified_reliably &&
                                                                        (cmsis_dap_usb_interface != -1
index 7cac20051ec0dee38ae141c7fdd0cba49688711c..f5a67dd118227291c58db9486e63b300bfbb4a33 100644 (file)
@@ -301,7 +301,7 @@ static int jtag_dpi_init(void)
        serv_addr.sin_addr.s_addr = inet_addr(server_address);
 
        if (serv_addr.sin_addr.s_addr == INADDR_NONE) {
-               LOG_ERROR("inet_addr error occured");
+               LOG_ERROR("inet_addr error occurred");
                return ERROR_FAIL;
        }
 
index 48a5c792eabd8fa89cdf0855c084a3bdc20e769d..3eea9de5860796d13413eedc4e2335d46a43250d 100644 (file)
@@ -844,11 +844,11 @@ static int nulink_usb_read_mem(void *handle, uint32_t addr, uint32_t size,
                /* the nulink only supports 8/32bit memory read/writes
                 * honour 32bit, all others will be handled as 8bit access */
                if (size == 4) {
-                       /* When in jtag mode the nulink uses the auto-increment functinality.
+                       /* When in jtag mode the nulink uses the auto-increment functionality.
                         * However it expects us to pass the data correctly, this includes
                         * alignment and any page boundaries. We already do this as part of the
                         * adi_v5 implementation, but the nulink is a hla adapter and so this
-                        * needs implementiong manually.
+                        * needs implementing manually.
                         * currently this only affects jtag mode, they do single
                         * access in SWD mode - but this may change and so we do it for both modes */
 
@@ -909,11 +909,11 @@ static int nulink_usb_write_mem(void *handle, uint32_t addr, uint32_t size,
                /* the nulink only supports 8/32bit memory read/writes
                 * honour 32bit, all others will be handled as 8bit access */
                if (size == 4) {
-                       /* When in jtag mode the nulink uses the auto-increment functinality.
+                       /* When in jtag mode the nulink uses the auto-increment functionality.
                         * However it expects us to pass the data correctly, this includes
                         * alignment and any page boundaries. We already do this as part of the
                         * adi_v5 implementation, but the nulink is a hla adapter and so this
-                        * needs implementiong manually.
+                        * needs implementing manually.
                         * currently this only affects jtag mode, do single
                         * access in SWD mode - but this may change and so we do it for both modes */
 
index c312468b41b954dcf1b2806c60f1b6e80a1cc932..aa7c240ee2d479fec5d6ed8435a23b78c3eb231f 100644 (file)
@@ -561,8 +561,8 @@ static int ublast_read_byteshifted_tdos(uint8_t *buf, int nb_bytes)
  *  - first bit is stored in byte0, bit0 (LSB)
  *  - second bit is stored in byte0, bit 1
  *  ...
- *  - eight bit is sotred in byte0, bit 7
- *  - ninth bit is sotred in byte1, bit 0
+ *  - eight bit is stored in byte0, bit 7
+ *  - ninth bit is stored in byte1, bit 0
  *  - etc ...
  *
  * Returns ERROR_OK if OK, ERROR_xxx if a read error occurred
index c6fdfafd39b5874fe81828afd7527a49f0cc9b56..0624c55fb9f9f3915a73bb3dfaa8eb266f4a2670 100644 (file)
@@ -32,7 +32,7 @@
  * interface functions, instead of the built-in asynchronous driver
  * module that is used by the standard JTAG interface drivers.
  *
- * In addtion to the functions defined in the @c minidriver.h file, the
+ * In addition to the functions defined in the @c minidriver.h file, the
  * @c jtag_minidriver.h file must declare the following functions (or
  * define static inline versions of them):
  * - jtag_add_callback

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)