Commit 330e5f24 authored by Todd Poynor's avatar Todd Poynor Committed by Greg Kroah-Hartman

staging: gasket: don't print device addresses as kernel pointers

Print device addresses as unsigned long, not as kernel pointers.
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e8742fc3
...@@ -1333,8 +1333,8 @@ static bool gasket_is_extended_dev_addr_bad( ...@@ -1333,8 +1333,8 @@ static bool gasket_is_extended_dev_addr_bad(
/* check if the device address is out of bound */ /* check if the device address is out of bound */
addr = dev_addr & ~((pg_tbl)->extended_flag); addr = dev_addr & ~((pg_tbl)->extended_flag);
if (addr >> (GASKET_EXTENDED_LVL0_WIDTH + GASKET_EXTENDED_LVL0_SHIFT)) { if (addr >> (GASKET_EXTENDED_LVL0_WIDTH + GASKET_EXTENDED_LVL0_SHIFT)) {
dev_err(pg_tbl->device, "device address out of bound, 0x%p\n", dev_err(pg_tbl->device, "device address out of bounds: 0x%lx\n",
(void *)dev_addr); dev_addr);
return true; return true;
} }
...@@ -1351,8 +1351,8 @@ static bool gasket_is_extended_dev_addr_bad( ...@@ -1351,8 +1351,8 @@ static bool gasket_is_extended_dev_addr_bad(
if (gasket_components_to_dev_address( if (gasket_components_to_dev_address(
pg_tbl, 0, page_global_idx, page_offset) != dev_addr) { pg_tbl, 0, page_global_idx, page_offset) != dev_addr) {
dev_err(pg_tbl->device, "address is invalid, 0x%p\n", dev_err(pg_tbl->device, "address is invalid: 0x%lx\n",
(void *)dev_addr); dev_addr);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment