Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3246a7fb authored by Luciano Coelho's avatar Luciano Coelho Committed by John W. Linville
Browse files

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: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 15e3d25a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);