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>
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");