Search Linux Wireless

Re: [PATCH 04/26] iwlwifi: trace debug messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2012-02-17 at 11:13 -0800, Wey-Yi Guy wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> Make iwlwifi record all debug messages into
> tracing, even if debug_level is not enabled.
[]
> diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.c b/drivers/net/wireless/iwlwifi/iwl-debug.c
[]
> +#define __iwl_fn(fn)						\
> +void __iwl_ ##fn(struct device *dev, const char *fmt, ...)	\
> +{								\
> +	struct va_format vaf = {				\
> +		.fmt = fmt,					\
> +	};							\

Using initializers like this takes 1 more line
than the form I believe is used everywhere else.

> +	va_list args;						\
> +								\
> +	va_start(args, fmt);					\
> +	vaf.va = &args;						\

	struct va_format vaf;

	va_start(args, fmt);
	vaf.fmt  = fmt;
	vaf.va = &args;


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux