From 953378ecfcce9f8a5f2d770b9ca3027e2dac7907 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Tue, 19 Nov 2024 15:34:37 +0000 Subject: [PATCH] Improve load_map printout Use start->end instead of start+size --- main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 2165d06..e82a6b2 100644 --- a/main.cpp +++ b/main.cpp @@ -3109,17 +3109,18 @@ void info_guts(memory_access &raw_access, void *con) { auto e = load_map->entries[i]; if (e.storage_address == 0) { ss << "Clear 0x" << std::hex << e.runtime_address; - ss << "+0x" << std::hex << e.size; + ss << "->0x" << std::hex << e.runtime_address + e.size; } else if (e.storage_address != e.runtime_address) { if (is_address_initialized(rp2350_address_ranges_flash, e.runtime_address)) { ss << "ERROR: COPY TO FLASH NOT PERMITTED "; } ss << "Copy 0x" << std::hex << e.storage_address; - ss << "+0x" << std::hex << e.size; + ss << "->0x" << std::hex << e.storage_address + e.size; ss << " to 0x" << std::hex << e.runtime_address; + ss << "->0x" << std::hex << e.runtime_address; + e.size; } else { ss << "Load 0x" << std::hex << e.storage_address; - ss << "+0x" << std::hex << e.size; + ss << "->0x" << std::hex << e.storage_address + e.size; } info_pair("load map entry " + std::to_string(i), ss.str()); }