]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d932dca7ac5428247d5cd6f24a915fad7d75812
tree422cb3f4f59109793a03041f09b94de2463c0623
parent064bcb773e451d01c97b9b60772d30bcc3d5c90c
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