summaryrefslogtreecommitdiff
path: root/src/device/pci_device.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-07-04 11:41:31 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-05 10:52:19 +0000
commitd19cc1119f64d04b33134925e602d29709d7577e (patch)
treebe9804800c995ac24189170fd9e190eb178c5f23 /src/device/pci_device.c
parenta932a471cc148c76016f980f92c8630ebb4409c0 (diff)
device: Reflow strings in printk statements
To ease finding some log messages, reflow their strings to use one line. Tested with BUILD_TIMELESS=1, Asrock B85M Pro4 remains identical. Change-Id: I5284429ca6d07debf2d6c4fdbffa286140fb7694 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56057 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/device/pci_device.c')
-rw-r--r--src/device/pci_device.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 63c1dc522a..4b5e73b806 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -149,8 +149,7 @@ struct resource *pci_get_resource(struct device *dev, unsigned long index)
*/
if (moving == 0) {
if (value != 0) {
- printk(BIOS_DEBUG, "%s register %02lx(%08lx), "
- "read-only ignoring it\n",
+ printk(BIOS_DEBUG, "%s register %02lx(%08lx), read-only ignoring it\n",
dev_path(dev), index, value);
}
resource->flags = 0;
@@ -234,8 +233,7 @@ static void pci_get_rom_resource(struct device *dev, unsigned long index)
resource->flags |= IORESOURCE_MEM | IORESOURCE_READONLY;
} else {
if (value != 0) {
- printk(BIOS_DEBUG, "%s register %02lx(%08lx), "
- "read-only ignoring it\n",
+ printk(BIOS_DEBUG, "%s register %02lx(%08lx), read-only ignoring it\n",
dev_path(dev), index, value);
}
resource->flags = 0;
@@ -512,8 +510,8 @@ static void pci_set_resource(struct device *dev, struct resource *resource)
we can treat it like an empty resource. */
resource->size = 0;
} else {
- printk(BIOS_ERR, "ERROR: %s %02lx %s size: 0x%010llx not "
- "assigned\n", dev_path(dev), resource->index,
+ printk(BIOS_ERR, "ERROR: %s %02lx %s size: 0x%010llx not assigned\n",
+ dev_path(dev), resource->index,
resource_type(resource), resource->size);
return;
}
@@ -980,9 +978,9 @@ static void set_pci_ops(struct device *dev)
default:
bad:
if (dev->enabled) {
- printk(BIOS_ERR, "%s [%04x/%04x/%06x] has unknown "
- "header type %02x, ignoring.\n", dev_path(dev),
- dev->vendor, dev->device,
+ printk(BIOS_ERR,
+ "%s [%04x/%04x/%06x] has unknown header type %02x, ignoring.\n",
+ dev_path(dev), dev->vendor, dev->device,
dev->class >> 8, dev->hdr_type);
}
}
@@ -1107,8 +1105,9 @@ struct device *pci_probe_dev(struct device *dev, struct bus *bus,
if ((id == 0xffffffff) || (id == 0x00000000) ||
(id == 0x0000ffff) || (id == 0xffff0000)) {
if (dev->enabled) {
- printk(BIOS_INFO, "PCI: Static device %s not "
- "found, disabling it.\n", dev_path(dev));
+ printk(BIOS_INFO,
+ "PCI: Static device %s not found, disabling it.\n",
+ dev_path(dev));
dev->enabled = 0;
}
return dev;