summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/i945/debug.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-03-30 17:16:51 +0200
committerNico Huber <nico.h@gmx.de>2020-04-11 09:19:13 +0000
commit3dff32c8041bb6d1ee4b2c5a8681ec0259b46bf6 (patch)
treed0207b25eee58f16bb5a8c222f4798278b15fcee /src/northbridge/intel/i945/debug.c
parentfd8de1860df9487cffb62bb2b657bd6e55b20596 (diff)
downloadcoreboot-3dff32c8041bb6d1ee4b2c5a8681ec0259b46bf6.tar.xz
nb/i945: Improve code formatting
Change-Id: I8a1eadcdc51dedd1e17eb6ae7847d9209b2bd598 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39934 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/northbridge/intel/i945/debug.c')
-rw-r--r--src/northbridge/intel/i945/debug.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/northbridge/intel/i945/debug.c b/src/northbridge/intel/i945/debug.c
index bb00b1414d..181ef5171a 100644
--- a/src/northbridge/intel/i945/debug.c
+++ b/src/northbridge/intel/i945/debug.c
@@ -10,9 +10,7 @@
void print_pci_devices(void)
{
pci_devfn_t dev;
- for (dev = PCI_DEV(0, 0, 0);
- dev <= PCI_DEV(0, 0x1f, 0x7);
- dev += PCI_DEV(0, 0, 1)) {
+ for (dev = PCI_DEV(0, 0, 0); dev <= PCI_DEV(0, 0x1f, 0x7); dev += PCI_DEV(0, 0, 1)) {
uint32_t id;
id = pci_read_config32(dev, PCI_VENDOR_ID);
if (((id & 0xffff) == 0x0000) || ((id & 0xffff) == 0xffff) ||
@@ -30,7 +28,8 @@ void dump_pci_device(unsigned int dev)
{
int i;
- printk(BIOS_DEBUG, "PCI: %02x:%02x.%02x\n", (dev >> 20) & 0xff, (dev >> 15) & 0x1f, (dev >> 12) & 7);
+ printk(BIOS_DEBUG, "PCI: %02x:%02x.%02x\n", (dev >> 20) & 0xff, (dev >> 15) & 0x1f,
+ (dev >> 12) & 7);
for (i = 0; i <= 255; i++) {
unsigned char val;
@@ -46,9 +45,7 @@ void dump_pci_device(unsigned int dev)
void dump_pci_devices(void)
{
pci_devfn_t dev;
- for (dev = PCI_DEV(0, 0, 0);
- dev <= PCI_DEV(0, 0x1f, 0x7);
- dev += PCI_DEV(0, 0, 1)) {
+ for (dev = PCI_DEV(0, 0, 0); dev <= PCI_DEV(0, 0x1f, 0x7); dev += PCI_DEV(0, 0, 1)) {
uint32_t id;
id = pci_read_config32(dev, PCI_VENDOR_ID);
if (((id & 0xffff) == 0x0000) || ((id & 0xffff) == 0xffff) ||