[haiku-commits] Re: r41247 - haiku/trunk/src/libs/compat/freebsd_wlan/net80211

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 13 Apr 2011 21:33:15 +0200

korli@xxxxxxxxxxxxxxxx wrote:
> +#if defined(__HAIKU__)
> +     ieee80211_ratectl_attach(ic);
> +#endif

I wonder where this is done in FreeBSD.

>  #define TRACE_WLAN
>  #ifdef TRACE_WLAN
> -#    define TRACE(x, ...) dprintf(x, __VA_ARGS__);
> +#    define TRACE(x...) dprintf(x);
>  #else
> -#    define TRACE(x, ...) ;
> +#    define TRACE(x...) ;
>  #endif

What's the purpose of this change? The new code is a GCC extension, 
while the old code is actually how the standard requests it.

Bye,
   Axel.


Other related posts: