Skip to content

Commit 4c93eab

Browse files
committed
Fix typos
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent f1beecb commit 4c93eab

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

app/commands.hh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ struct VerifyFile : public Commands<T> {
155155
}
156156

157157
if (!page) {
158-
std::println("Program page {:#x} failed.", addr);
158+
std::println("Read page {:#x} failed.", addr);
159159
return 0;
160160
}
161161

162-
uint32_t chunck = std::min(remainder, std::size_t{flash::PageSize});
162+
uint32_t chunk = std::min(remainder, std::size_t{flash::PageSize});
163163
std::span<uint8_t> data(*page);
164-
if (chunck < data.size()) {
165-
data = data.subspan(0, chunck);
164+
if (chunk < data.size()) {
165+
data = data.subspan(0, chunk);
166166
}
167167
flash_hasher.process(data.begin(), data.end());
168168

169-
addr += chunck;
170-
remainder -= chunck;
169+
addr += chunk;
170+
remainder -= chunk;
171171
progress_bar.update(file_size - remainder);
172172
}
173173

app/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ int main(int argc, char* argv[]) {
224224
.scan<'x', std::size_t>();
225225
bootstrap_cmd->add_argument("--quad").help("Use qSPI").default_value(false).implicit_value(true);
226226
bootstrap_cmd->add_argument("--skip-erase")
227-
.help("Dont issue erase commands")
227+
.help("Don't issue erase commands")
228228
.default_value(false)
229229
.implicit_value(true);
230230
program.add_subparser(*bootstrap_cmd);

lib/visuals/throughput.hh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ struct Throughput {
1717
progress = 0;
1818
}
1919

20-
Throughput& add(size_t transfered) {
21-
progress += transfered;
20+
Throughput& add(size_t transferred) {
21+
progress += transferred;
2222
elapsed = std::chrono::high_resolution_clock::now();
2323
return *this;
2424
}
2525

26-
Throughput& total(size_t transfered) {
27-
progress = transfered;
26+
Throughput& total(size_t transferred) {
27+
progress = transferred;
2828
elapsed = std::chrono::high_resolution_clock::now();
2929
return *this;
3030
}

0 commit comments

Comments
 (0)