Skip to content

Commit

Permalink
target: Add missing linefeeds in monitor erase* usage messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer authored and dragonmux committed Nov 5, 2023
1 parent a9697dd commit d0c8bb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/target/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ static bool target_cmd_mass_erase(target_s *const t, const int argc, const char
(void)argc;
(void)argv;
if (!t || !t->mass_erase) {
gdb_out("Mass erase not implemented for target_s");
gdb_out("Mass erase not implemented for target\n");
return true;
}
gdb_out("Erasing device Flash: ");
Expand All @@ -449,9 +449,9 @@ static bool target_cmd_mass_erase(target_s *const t, const int argc, const char
static bool target_cmd_range_erase(target_s *const t, const int argc, const char **const argv)
{
if (argc < 3) {
gdb_out("usage: monitor erase_range <address> <count>");
gdb_out("\t<address> is an address in the first page to erase");
gdb_out("\t<count> is the number bytes after that to erase, rounded to the next higher whole page");
gdb_out("usage: monitor erase_range <address> <count>\n");
gdb_out("\t<address> is an address in the first page to erase\n");
gdb_out("\t<count> is the number bytes after that to erase, rounded to the next higher whole page\n");
return true;
}
const uint32_t addr = strtoul(argv[1], NULL, 0);
Expand Down

0 comments on commit d0c8bb7

Please sign in to comment.