OSDN Git Service

x86/PCI: Tidy E820 removal messages
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Dec 2022 19:03:40 +0000 (13:03 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 10 Dec 2022 16:33:11 +0000 (10:33 -0600)
commit00904bf64c2819d90a76407d79bdbc8918541320
treeae3128fb260e647fd909b1f57d44419375ff9252
parent5c5fb3c3a793b34554e1d21f07cda34308b082cd
x86/PCI: Tidy E820 removal messages

These messages:

  clipped [mem size 0x00000000 64bit] to [mem size 0xfffffffffffa0000 64bit] for e820 entry [mem 0x0009f000-0x000fffff]

aren't as useful as they could be because (a) the resource is often
IORESOURCE_UNSET, so we print the size instead of the start/end and (b) we
print the available resource even if it is empty after removing the E820
entry.

Print the available space by hand to avoid the IORESOURCE_UNSET problem and
only if it's non-empty.  No functional change intended.

Link: https://lore.kernel.org/r/20221208190341.1560157-4-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
arch/x86/kernel/resource.c