Search Linux Wireless

Re: [PATCH 10/13] iwlwifi: move iwl_print_hex_dump to iwl-debug.h

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

 



On Fri, Nov 7, 2008 at 8:03 PM, Harvey Harrison
<harvey.harrison@xxxxxxxxx> wrote:
> On Fri, 2008-11-07 at 09:58 -0800, Reinette Chatre wrote:
>> From: Winkler, Tomas <tomas.winkler@xxxxxxxxx>
>>
>> This patch moves iwl_print_hex_dump to iwl-debug.h
>> where it belongs
>>
>> Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
>> Signed-off-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
>> ---
>>  drivers/net/wireless/iwlwifi/iwl-debug.h |   10 ++++++++++
>>  drivers/net/wireless/iwlwifi/iwl-dev.h   |   17 -----------------
>>  2 files changed, 10 insertions(+), 17 deletions(-)
>>
>> diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
>> index 84b7772..0e79a6a 100644
>> --- a/drivers/net/wireless/iwlwifi/iwl-debug.h
>> +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h
>> @@ -40,6 +40,13 @@ do { if ((priv->debug_level & (level)) && net_ratelimit()) \
>>    dev_printk(KERN_ERR, &(priv->hw->wiphy->dev), "%c %s " fmt, \
>>        in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0)
>>
>> +#define iwl_print_hex_dump(priv, level, p, len)                      \
>> +do {                                                                 \
>> +     if (priv->debug_level & level)                                  \
>> +             print_hex_dump(KERN_DEBUG, "iwl data: ",                \
>> +                            DUMP_PREFIX_OFFSET, 16, 1, p, len, 1);   \
>> +} while (0)
>
> static inline please.

Won't work in this case priv is not defined in this context, need to
solve this in another round.
>
>> +
>>  #ifdef CONFIG_IWLWIFI_DEBUGFS
>>  struct iwl_debugfs {
>>       const char *name;
>> @@ -70,6 +77,9 @@ void iwl_dbgfs_unregister(struct iwl_priv *priv);
>>  #else
>>  #define IWL_DEBUG(level, fmt, args...)
>>  #define IWL_DEBUG_LIMIT(level, fmt, args...)
>> +static inline void iwl_print_hex_dump(struct iwl_priv *priv, int level,
>> +                                   void *p, u32 len)
>> +{}
>>  #endif                               /* CONFIG_IWLWIFI_DEBUG */
>
> To keep it in sync with this.

This one can be changed.
Tomas
--
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 Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux