Skip to content

Commit

Permalink
flash: disable unused logs
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense committed Sep 7, 2023
1 parent 5b12461 commit 12413be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/device/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ void load_flash_contents(const char *flash_img) {
}

if (!flash_img || !(fp = fopen(flash_img, "r"))) {
Log("Can not find flash image: %s", flash_img);
Log("Use built-in image instead");
// Log("Can not find flash image: %s", flash_img);
// Log("Use built-in image instead");
uint32_t *p = (uint32_t *)flash_base;
sscanf(CONFIG_FLASH_PRESET_CONTENT, "%x,%x,%x", p, p + 1, p + 2);
} else {
Expand Down
6 changes: 3 additions & 3 deletions src/device/io/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ void add_mmio_map(const char *name, paddr_t addr, void *space, uint32_t len, io_
assert(nr_map < NR_MAP);
maps[nr_map] = (IOMap){ .name = name, .low = addr, .high = addr + len - 1,
.space = space, .callback = callback };
Log("Add mmio map '%s' at [" FMT_PADDR ", " FMT_PADDR "]",
maps[nr_map].name, maps[nr_map].low, maps[nr_map].high);
fflush(stdout);
// Log("Add mmio map '%s' at [" FMT_PADDR ", " FMT_PADDR "]",
// maps[nr_map].name, maps[nr_map].low, maps[nr_map].high);
// fflush(stdout);

nr_map ++;
}
Expand Down

0 comments on commit 12413be

Please sign in to comment.