From patchwork Thu Apr 17 13:27:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 4008271 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 786D19F336 for ; Thu, 17 Apr 2014 13:28:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6D19201B9 for ; Thu, 17 Apr 2014 13:28:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E6AF72018E for ; Thu, 17 Apr 2014 13:28:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161084AbaDQN2K (ORCPT ); Thu, 17 Apr 2014 09:28:10 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:45705 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756333AbaDQN2J (ORCPT ); Thu, 17 Apr 2014 09:28:09 -0400 Received: by mail-pd0-f180.google.com with SMTP id v10so371494pde.39 for ; Thu, 17 Apr 2014 06:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Z+OT1joNUz4wY/Tsj+ZNDJ59GQb8xbWyrEkDH5capWs=; b=s2Y1HId8RyEK2BPCUF/gHJcv+GCbTQs9LheNSx+oEtQ4Ba0xdg4Kl4h9qaYS8rjDbL yCQV6l/94CeobwtGfSFtqZq3ZhkqqjX6PhheA7VmL8tBhySAa8tN2yLGW0fAoOtiLRck KjxXNfdVOxLlu1sCX9742dUaSZ2HsWZ+tisk8neH388x8PeIm/VtpmlO6taqR1QeMZmm BOsHILrR9CRKT++RBLjwlvo/m7ywWv86ZngsxlrKHmbUdhC9iI02Rud/JJQ1c4h8ASe4 oMDLw6ZTZlp5BmUizW09eK6ASWVt/0kmKJFwng+yCYrv5hsUIG4Jarw+kso0+l0aNF/N bQrw== X-Received: by 10.68.221.129 with SMTP id qe1mr15468394pbc.135.1397741288525; Thu, 17 Apr 2014 06:28:08 -0700 (PDT) Received: from localhost.localdomain ([175.153.40.25]) by mx.google.com with ESMTPSA id ir10sm53596895pbc.59.2014.04.17.06.28.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 06:28:08 -0700 (PDT) From: "Zhao, Gang" To: Cc: "John W. Linville" , Johannes Berg Subject: [PATCH 6/6] cfg80211: remove function wiphy_debug() Date: Thu, 17 Apr 2014 21:27:14 +0800 Message-Id: <916d5b003247958845d5585757a6a51316bc783c.1397741141.git.gamerh2o@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Dynamic debug function wiphy_dbg() is more convenient for debugging, and if user doesn't enable CONFIG_DYNAMIC_DEBUG, it will fall back to normal static debug, just as what wiphy_debug() does. All the uses of wiphy_debug() are replaced with wiphy_dbg(), so wiphy_debug() can be removed. Cc: Johannes Berg Signed-off-by: Zhao, Gang --- include/net/cfg80211.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index f3539a1..ace298f 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -4702,10 +4702,6 @@ unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy); dev_notice(&(wiphy)->dev, format, ##args) #define wiphy_info(wiphy, format, args...) \ dev_info(&(wiphy)->dev, format, ##args) - -#define wiphy_debug(wiphy, format, args...) \ - wiphy_printk(KERN_DEBUG, wiphy, format, ##args) - #define wiphy_dbg(wiphy, format, args...) \ dev_dbg(&(wiphy)->dev, format, ##args)