From: Florent Kermarrec Date: Thu, 25 Jun 2020 07:58:08 +0000 (+0200) Subject: software/bios/boot: improve printfs. X-Git-Tag: 24jan2021_ls180~142 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8aa9a42e411f78471e52dba4861d8756c13c1fc;p=litex.git software/bios/boot: improve printfs. --- diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index ce4b6e29..1419a8e0 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -423,7 +423,7 @@ static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned lon length = check_image_in_flash(flash_address); if(length > 0) { - printf("Copying %d bytes from 0x%08x to 0x%08x...\n", length, flash_address, ram_address); + printf("Copying 0x%08x to 0x%08x (%d bytes)...\n", flash_address, ram_address, length); offset = 0; init_progression_bar(length); while (length > 0) { @@ -495,7 +495,7 @@ static int copy_file_from_sdcard_to_ram(const char * filename, unsigned long ram } length = f_size(&file); - printf("Copying %d bytes from %s to 0x%08x...\n", length, filename, ram_address); + printf("Copying %s to 0x%08x (%d bytes)...\n", filename, ram_address, length); init_progression_bar(length); offset = 0; for (;;) {