diff options
author | Anastasia Klimchuk <aklm@flashrom.org> | 2023-10-21 20:29:58 +1100 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2023-11-12 22:18:04 +0000 |
commit | 9c130dbfcc5b4441c840a2f613420fa2a1d2678d (patch) | |
tree | 6d3a4cf41645d944332d05f8534f475f8810b673 | |
parent | fa8808595a0199be06ebf278734524f62fc978ab (diff) | |
download | flashrom-9c130dbfcc5b4441c840a2f613420fa2a1d2678d.tar.gz flashrom-9c130dbfcc5b4441c840a2f613420fa2a1d2678d.tar.bz2 flashrom-9c130dbfcc5b4441c840a2f613420fa2a1d2678d.zip |
erasure_layout: Add region boundaries to printed info message
Change-Id: I511a79754cff15e7dba26f5313d7015830780f60
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/78492
Reviewed-by: Alexander Goncharov <chat@joursoir.net>
Reviewed-by: Aarya <aarya.chaumal@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | erasure_layout.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/erasure_layout.c b/erasure_layout.c index b43e52e8f..0c31911b9 100644 --- a/erasure_layout.c +++ b/erasure_layout.c @@ -174,11 +174,17 @@ static void align_region(const struct erase_layout *layout, struct flashctx *con } if (start_diff) { - msg_cinfo("Region start not sector aligned! Extending start boundaries...\n"); + msg_cinfo("Region [0x%08x - 0x%08x] is not sector aligned! " + "Extending start boundaries by 0x%08x bytes, from 0x%08x -> 0x%08x\n", + *region_start, *region_end, + start_diff, *region_start, *region_start - start_diff); *region_start = *region_start - start_diff; } if (end_diff) { - msg_cinfo("Region end not sector aligned! Extending end boundaries...\n"); + msg_cinfo("Region [0x%08x - 0x%08x] is not sector aligned! " + "Extending end boundaries by 0x%08x bytes, from 0x%08x -> 0x%08x\n", + *region_start, *region_end, + end_diff, *region_end, *region_end + end_diff); *region_end = *region_end + end_diff; } } |