]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86: make it clear range is inclusive when printing e820 range
authorWei Liu <wl@xen.org>
Thu, 6 Feb 2020 12:10:24 +0000 (12:10 +0000)
committerWei Liu <wl@xen.org>
Thu, 6 Feb 2020 13:51:14 +0000 (13:51 +0000)
Change the format string to use "[,]" and subtract 1 from the end.

Signed-off-by: Wei Liu <wl@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/e820.c

index 160f029edd0dc8ae034f32949ba599848a7da728..c9dc52c7683b3cf366daea940d4babd426a35885 100644 (file)
@@ -92,9 +92,9 @@ static void __init print_e820_memory_map(struct e820entry *map, unsigned int ent
     unsigned 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");