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>
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 63c1dc5..4b5e73b 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -149,8 +149,7 @@
*/
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 @@
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 @@
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 @@
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 @@
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;