Skip to content

Commit 5820a31

Browse files
Kyle Kearney0xc0170
authored andcommitted
Fix typos in comments
1 parent 4a0ca21 commit 5820a31

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

features/storage/kvstore/conf/kv_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ BlockDevice *_get_blockdevice_FLASHIAP(bd_addr_t start_address, bd_size_t size)
388388
}
389389

390390
if (size == 0) {
391-
//The block device will have all space form start address to the end of the flash
391+
//The block device will have all space from start address to the end of the flash
392392
size = (flash_end_address - start_address);
393393

394394
static FlashIAPBlockDevice bd(start_address, size);

features/storage/kvstore/tdbstore/TDBStore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ int TDBStore::set_finalize(set_handle_t handle)
614614
goto end;
615615
}
616616

617-
// Writes may fail without returning a failure (specially in flash components). Reread the record
617+
// Writes may fail without returning a failure (especially in flash components). Reread the record
618618
// to ensure write success (this won't read the data anywhere - just use the CRC calculation).
619619
ret = read_record(_active_area, ih->bd_base_offset, 0, 0, (uint32_t) -1,
620620
actual_data_size, 0, false, false, false, false,
@@ -1061,7 +1061,7 @@ int TDBStore::init()
10611061
// (this will do nothing if already erased)
10621062
if (ret == MBED_ERROR_INVALID_DATA_DETECTED) {
10631063
if (check_erase_before_write(area, _master_record_offset, _master_record_size, true)) {
1064-
MBED_ERROR(MBED_ERROR_READ_FAILED, "TDBSTORE: Unable reset area at init");
1064+
MBED_ERROR(MBED_ERROR_READ_FAILED, "TDBSTORE: Unable to reset area at init");
10651065
}
10661066
area_state[area] = TDBSTORE_AREA_STATE_EMPTY;
10671067
continue;

platform/source/mbed_error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ static mbed_error_status_t handle_error(mbed_error_status_t error_status, unsign
139139

140140
//Error status should always be < 0
141141
if (error_status >= 0) {
142-
//This is a weird situation, someone called mbed_error with invalid error code.
143-
//We will still handle the situation but change the error code to ERROR_INVALID_ARGUMENT, atleast the context will have info on who called it
142+
//This is a weird situation, someone called mbed_error with an invalid error code.
143+
//We will still handle the situation but change the error code to ERROR_INVALID_ARGUMENT, at least the context will have info on who called it
144144
error_status = MBED_ERROR_INVALID_ARGUMENT;
145145
}
146146

0 commit comments

Comments
 (0)