From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.perches.com ([173.55.12.10]:1191 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153Ab0HSTYK (ORCPT ); Thu, 19 Aug 2010 15:24:10 -0400 Subject: [RFC patch] include/net/cfg80211.h: wiphy_ messages use dev_printk From: Joe Perches To: Johannes Berg Cc: "John W. Linville" , linux-wireless@vger.kernel.org, netdev , LKML Content-Type: text/plain; charset="UTF-8" Date: Thu, 19 Aug 2010 12:24:08 -0700 Message-ID: <1282245848.6724.261.camel@Joe-Laptop> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Adding device to the wiphy logging messages could be useful. Signed-off-by: Joe Perches --- include/net/cfg80211.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 6a98b1b..61bc007 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -2439,7 +2439,7 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev, /* wiphy_printk helpers, similar to dev_printk */ #define wiphy_printk(level, wiphy, format, args...) \ - printk(level "%s: " format, wiphy_name(wiphy), ##args) + dev_printk(level, &wiphy->dev, "%s: " format, wiphy_name(wiphy), ##args) #define wiphy_emerg(wiphy, format, args...) \ wiphy_printk(KERN_EMERG, wiphy, format, ##args) #define wiphy_alert(wiphy, format, args...) \