Subject: Re: [PATCH 3/8] brcm80211: Add and use brcmX_dbg_dump_hex

From: "Arend van Spriel" <[email-masked]>
Date: Sun, 15 Jan 2012 10:17:56 +0100

On 01/15/2012 09:38 AM, Joe Perches wrote:

> +#ifdef DEBUG
> +extern __printf(3, 4)

Just curious if I can learn something here. What does the __printf(3, 4) do?

> +void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...);
> +#else
> +__printf(3, 4)
> +static inline
> +void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...)
> +{
> +}
> +#endif
> +
>  #endif				/* _BRCMU_UTILS_H_ */

Gr. AvS