aboutsummaryrefslogtreecommitdiff
path: root/core/pci.c
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2016-11-16 15:04:23 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-14 17:16:34 +1100
commit02a7c2cf6b2af393e66610bc102da5101736f8be (patch)
tree2c2e4abbd93fb9d017a58ccf64dfc81e23e68a29 /core/pci.c
parent739063fb706f987df2a766a981abc75053244044 (diff)
downloadskiboot-02a7c2cf6b2af393e66610bc102da5101736f8be.zip
skiboot-02a7c2cf6b2af393e66610bc102da5101736f8be.tar.gz
skiboot-02a7c2cf6b2af393e66610bc102da5101736f8be.tar.bz2
pci: Always print PHB and PE numbers as hexadecimal
PHB and PE numbers are sometimes printed as decimal and sometimes as hexadecimal, which is confusing. Standardise on hexadecimal. This is especially useful now that PHB numbers in Linux always match their OPAL ID. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/pci.c')
-rw-r--r--core/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pci.c b/core/pci.c
index 4160299..0a9f8cd 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -880,12 +880,12 @@ int64_t pci_register_phb(struct phb *phb, int opal_id)
}
} else {
if (opal_id >= ARRAY_SIZE(phbs)) {
- prerror("PHB: ID %d out of range !\n", opal_id);
+ prerror("PHB: ID %x out of range !\n", opal_id);
return OPAL_PARAMETER;
}
/* The user did specify an opal_id, check it's free */
if (phbs[opal_id]) {
- prerror("PHB: Duplicate registration of ID %d\n", opal_id);
+ prerror("PHB: Duplicate registration of ID %x\n", opal_id);
return OPAL_PARAMETER;
}
}