Commit d0ca0ffc authored by Sam Bristow's avatar Sam Bristow Committed by Fabio Utzig
Browse files

Fix up typos

Ran automated checker for common typos [1]. Most of these changes have
no functional change *except* for `./ci/sim_run.sh` where, previously
the `bootstrap` feature wasn't being selected properly.

I didn't touch anything in the `./ext/` folder as anything in there
should probably be fixed in the upstream repo.

[1] https://github.com/codespell-project/codespell

Signed-off-by: default avatarSam Bristow <sam@bristow.nz>
parent 441e9978
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/bootutil/src/bootutil_misc.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ boot_read_swap_state_by_id(int flash_area_id, struct boot_swap_state *state)
 * This functions tries to locate the status area after an aborted swap,
 * by looking for the magic in the possible locations.
 *
 * If the magic is sucessfully found, a flash_area * is returned and it
 * If the magic is successfully found, a flash_area * is returned and it
 * is the responsibility of the called to close it.
 *
 * @returns 0 on success, -1 on errors
+1 −1
Changes for boot/bootutil/src/image_rsa.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ bootutil_cmp_rsasig(mbedtls_rsa_context *ctx, uint8_t *hash, uint32_t hlen,
     * The salt length is not known at this point.
     */

    /* Step 4.  If the rightmost octect of EM does have the value
    /* Step 4.  If the rightmost octet of EM does have the value
     * 0xbc, output inconsistent and stop.
     */
    if (em[PSS_EMLEN - 1] != 0xbc) {
+1 −1
Changes for boot/bootutil/src/loader.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -915,7 +915,7 @@ boot_check_header_erased(struct boot_loader_state *state, int slot)
 * Check that there is a valid image in a slot
 *
 * @returns
 *         0 if image was succesfully validated
 *         0 if image was successfully validated
 *         1 if no bootloable image was found
 *         -1 on any errors
 */
+1 −1
Changes for boot/bootutil/src/tlv.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@
 * @param type Type of TLV to look for
 * @param prot true if TLV has to be stored in the protected area, false otherwise
 *
 * @returns 0 if the TLV iterator was succesfully started
 * @returns 0 if the TLV iterator was successfully started
 *          -1 on errors
 */
int
+1 −1
Changes for boot/zephyr/Kconfig: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ config BOOT_UPGRADE_ONLY
	  uses a much simpler code path.

config BOOT_BOOTSTRAP
	bool "Boostrap erased the primary slot from the secondary slot"
	bool "Bootstrap erased the primary slot from the secondary slot"
	default n
	help
	  If y, enables bootstraping support. Bootstrapping allows an erased
Loading