summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-06-28 22:26:39 -0700
committerIan Romanick <idr@us.ibm.com>2007-06-28 22:26:39 -0700
commit9c85fb866dc7954092b7ffd0ca9f76eb5354ace8 (patch)
tree9712b2252f376ac0726e54ac7ddd50eae8d6b1e8 /linux-core
parent11ffe4632a097e3d579d084634eeccc63348249b (diff)
Clean up debug log messages in xgi_find_pcie_block.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/xgi_pcie.c36
1 files changed, 13 insertions, 23 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index b29b083d..b449a5fd 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -953,22 +953,18 @@ void *xgi_find_pcie_virt(xgi_info_t * info, unsigned long address)
unsigned long loc_in_pagetable;
void *ret;
- XGI_INFO("Jong_05292006-xgi_find_pcie_virt-Begin\n");
-
used_list = xgi_pcie_heap->used_list.next;
- XGI_INFO("Jong_05292006-used_list=%ul\n", used_list);
-
offset_in_page = address & (PAGE_SIZE - 1);
- XGI_INFO
- ("Jong_05292006-address=0x%px, PAGE_SIZE-1=%ul, offset_in_page=%ul\n",
- address, PAGE_SIZE - 1, offset_in_page);
+
+ XGI_INFO("begin (used_list = 0x%p, address = 0x%lx, "
+ "PAGE_SIZE - 1 = %lu, offset_in_page = %lu)\n",
+ used_list, address, PAGE_SIZE - 1, offset_in_page);
while (used_list != &xgi_pcie_heap->used_list) {
block = list_entry(used_list, struct xgi_pcie_block_s, list);
- XGI_INFO("Jong_05292006-block=0x%px\n", block);
- XGI_INFO("Jong_05292006-block->hw_addr=0x%px\n",
- block->hw_addr);
- XGI_INFO("Jong_05292006- block->size=%ul\n", block->size);
+
+ XGI_INFO("block = 0x%p (hw_addr = 0x%lx, size=%lu)\n",
+ block, block->hw_addr, block->size);
if ((address >= block->hw_addr)
&& (address < (block->hw_addr + block->size))) {
@@ -978,21 +974,15 @@ void *xgi_find_pcie_virt(xgi_info_t * info, unsigned long address)
(void *)(block->page_table[loc_in_pagetable].
virt_addr + offset_in_page);
- XGI_INFO("Jong_05292006-PAGE_SHIFT=%d\n", PAGE_SHIFT);
- XGI_INFO("Jong_05292006-loc_in_pagetable=0x%px\n",
- loc_in_pagetable);
- XGI_INFO
- ("Jong_05292006-block->page_table[loc_in_pagetable].virt_addr=0x%px\n",
- block->page_table[loc_in_pagetable].virt_addr);
- XGI_INFO("Jong_05292006-offset_in_page=%d\n",
- offset_in_page);
- XGI_INFO("Jong_05292006-return(virt_addr)=0x%px\n",
- ret);
+ XGI_INFO("PAGE_SHIFT = %d\n", PAGE_SHIFT);
+ XGI_INFO("block->page_table[0x%lx].virt_addr = 0x%lx\n",
+ loc_in_pagetable,
+ block->page_table[loc_in_pagetable].virt_addr);
+ XGI_INFO("return 0x%p\n", ret);
return ret;
} else {
- XGI_INFO
- ("Jong_05292006-used_list = used_list->next;\n");
+ XGI_INFO("used_list = used_list->next;\n");
used_list = used_list->next;
}
}