From f9b114054ca8a2bb92c0610f0c67d424daf2daf4 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 4 Sep 2008 00:38:54 +0000 Subject: [PATCH] Improve debugging printks for LAR and PCI access. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://coreboot.org/repository/coreboot-v3@856 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/pci_ops_conf1.c | 4 +++- lib/lar.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/x86/pci_ops_conf1.c b/arch/x86/pci_ops_conf1.c index d8ec475189..d305a2a9d5 100644 --- a/arch/x86/pci_ops_conf1.c +++ b/arch/x86/pci_ops_conf1.c @@ -144,8 +144,10 @@ int pci_conf1_find_on_bus(u16 bus, u16 vid, u16 did, u32 *busdevfn) * things are set up (which we have to be able to do * in stage 0 */ - if (! busses) + if (!busses) { + printk(BIOS_WARNING, "pci_conf1_find_on_bus: busses is 0!\n"); continue; + } if (pci_conf1_find_on_bus((busses >> 8) & 0xFF, vid, did, busdevfn)) return 1; } diff --git a/lib/lar.c b/lib/lar.c index 01efd42a8f..63d9604b21 100644 --- a/lib/lar.c +++ b/lib/lar.c @@ -120,8 +120,8 @@ int find_file(const struct mem_file *archive, const char *filename, struct mem_f header = (struct lar_header *)walk; fullname = walk + sizeof(struct lar_header); - printk(BIOS_SPEW, "LAR: %s@%p, size %d\n", fullname, - header, ntohl(header->len)); + printk(BIOS_SPEW, "LAR: seen member %s@%p, size %d\n", + fullname, header, ntohl(header->len)); // FIXME: check checksum if (strcmp(fullname, filename) == 0) {