x86/PCI: Make pci=earlydump output neat
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 25 Apr 2018 10:15:07 +0000 (13:15 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 27 Apr 2018 21:55:35 +0000 (16:55 -0500)
commit51c0170375e6884b1a5d68953a49e0ccd12e4971
tree422cb3f4f59109793a03041f09b94de2463c0623
parent60cc43fc888428bb2f18f08997432d426a243338
x86/PCI: Make pci=earlydump output neat

Currently the early dump of PCI configuration space looks quite unhelpful,
e.g.

  [    0.000000]   60:
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]  00
  [    0.000000]

which makes really hard to get anything out of this. Convert the function
to use print_hex_dump() to make output neat.

In the result we will have

  [    0.000000] 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

which is much, much better.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
arch/x86/pci/early.c