x86: make it clear range is inclusive when printing e820 range
PATCH 1/1 x86: make it clear range is inclusive when printing e820 range
Change the format string to use "[,]" and subtract 1 from the end.
Signed-off-by Wei Liu <[email protected]>
--- xen/arch/x86/e820.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/e820.c +2 -2
@@ -92,9 +92,9 @@ static void __init print_e820_memory_map(struct e820entry *map, unsigned int entunsigned int i;for (i =0 ; i < entries; i++) { -printk (" %016Lx - %016Lx " , +printk (" [%016Lx, %016Lx] " , (unsigned long long )(map[i].addr), - (unsigned long long )(map[i].addr + map[i].size)); + (unsigned long long )(map[i].addr + map[i].size) -1 );switch (map[i].type) {case E820_RAM :printk ("(usable)\n" );
Signature · 7 lines
2.20.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Wei Liu
Change the format string to use "[,]" and subtract 1 from the end.
Signed-off-by Wei Liu <[email protected]>
Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel