diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-07-16 21:12:30 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-07-16 21:12:30 -0700 |
commit | 5b08ab258f3e541334d2b64d38e15e1431080199 (patch) | |
tree | 76880a2ef8e28d88c4e544c82fd9ade6a20c8729 | |
parent | 2b6ea465134e72fa6aa96df5e40fbc91b561ef00 (diff) |
Clean ups (primarilly log messages) in xgi_test_rwinkernel.
-rw-r--r-- | linux-core/xgi_pcie.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c index 0d641ab8..cfc9febc 100644 --- a/linux-core/xgi_pcie.c +++ b/linux-core/xgi_pcie.c @@ -919,20 +919,21 @@ void *xgi_find_pcie_virt(struct xgi_info * info, unsigned long address) */ void xgi_test_rwinkernel(struct xgi_info * info, unsigned long address) { - unsigned long *virtaddr = 0; + u32 *virtaddr = 0; + + XGI_INFO("input GE HW addr is 0x%x\n", address); + if (address == 0) { - XGI_INFO("[Jong-kd] input GE HW addr is 0x00000000\n"); return; } - virtaddr = (unsigned long *)xgi_find_pcie_virt(info, address); + virtaddr = (u32 *)xgi_find_pcie_virt(info, address); + + XGI_INFO("convert to CPU virt addr 0x%p\n", virtaddr); - XGI_INFO("[Jong-kd] input GE HW addr is 0x%lx\n", address); - XGI_INFO("[Jong-kd] convert to CPU virt addr 0x%px\n", virtaddr); - XGI_INFO("[Jong-kd] origin [virtaddr] = 0x%lx\n", *virtaddr); if (virtaddr != NULL) { + XGI_INFO("original [virtaddr] = 0x%x\n", *virtaddr); *virtaddr = 0x00f00fff; + XGI_INFO("modified [virtaddr] = 0x%x\n", *virtaddr); } - - XGI_INFO("[Jong-kd] modified [virtaddr] = 0x%lx\n", *virtaddr); } |