diff options
author | Luciano Coelho <coelho@ti.com> | 2012-05-16 05:59:59 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-16 13:08:27 -0400 |
commit | 3246a7fbc51abe9394df3c68c7d59ea821a1dce2 (patch) | |
tree | 5627bb0045d0bbe5cf796bfb1504fefb3b486e56 /drivers/net/wireless | |
parent | 15e3d25a7a5c0a79ccf6f81c06efd8f2a78b7161 (diff) |
wlcore: fix pointer print out in wl1271_acx_set_rx_filter()
The debug print in wl1271_acx_set_rx_filter() was causing the
following warning:
CC drivers/net/wireless/ti/wlcore/acx.o
drivers/net/wireless/ti/wlcore/acx.c: In function ‘wl1271_acx_set_rx_filter’:
drivers/net/wireless/ti/wlcore/acx.c:1759:2: warning: cast from pointer to integer of different size
Instead of casting the pointer to an integer, use %p to print it our
instead.
Reported-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/acx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/acx.c b/drivers/net/wireless/ti/wlcore/acx.c index 0fd78a0b666..509aa881d79 100644 --- a/drivers/net/wireless/ti/wlcore/acx.c +++ b/drivers/net/wireless/ti/wlcore/acx.c @@ -1756,8 +1756,9 @@ int wl1271_acx_set_rx_filter(struct wl1271 *wl, u8 index, bool enable, WARN_ON(enable && !filter); WARN_ON(index >= WL1271_MAX_RX_FILTERS); - wl1271_debug(DEBUG_ACX, "acx set rx filter idx: %d enable: %d" - "filter: 0x%x", index, enable, (unsigned int)filter); + wl1271_debug(DEBUG_ACX, + "acx set rx filter idx: %d enable: %d filter: %p", + index, enable, filter); if (enable) { fields_size = wl1271_rx_filter_get_fields_size(filter); |