# Re: mwifiex: Make mwifiex\_dbg a function, reduce object size

- From: Kalle Valo \<hidden\>
- Date: 2015-09-29 07:33:29 
- List: netdev
- Page: https://ratatoskr.run/netdev/2015/09/4585534
- Thread: https://ratatoskr.run/linux-wireless/2015/08/4567131/t.md

```text

> The mwifiex_dbg macro has two tests that could be consolidated
> into a function reducing overall object size ~10KB (~4%).
> 
> So convert the macro into a function.
> 
> $ size drivers/net/wireless/mwifiex/built-in.o* (x86-64 defconfig)
>    text	   data	    bss	    dec	    hex	filename
>  233102	   8628	   4809	 246539	  3c30b	drivers/net/wireless/mwifiex/built-in.o.new
>  243949	   8628	   4809	 257386	  3ed6a	drivers/net/wireless/mwifiex/built-in.o.old
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo
```
