From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCA49C38A2D for ; Mon, 24 Oct 2022 04:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbiJXEH7 (ORCPT ); Mon, 24 Oct 2022 00:07:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbiJXEHz (ORCPT ); Mon, 24 Oct 2022 00:07:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 674B258162 for ; Sun, 23 Oct 2022 21:07:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0AFC5B80BA4 for ; Mon, 24 Oct 2022 04:07:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 316E3C433C1; Mon, 24 Oct 2022 04:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666584471; bh=wqPgP+8gYHmK9GoieUKkAx4Z5kQUK7bHl56fCslFrUA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aIxX1ej7uZtoW4nLSZBV5AQuSiOEwB1kMAgXMr95mJ3/m6kmXDSQOu0jyxLkKPAAi onH2jWPn/F8urOxwynMLOsn1WG9sQgVAHDa3d/C/MDaMbU8xt0dTMvafILGDRa1scs VTGKvaYlcOIXAtgIor7q4CBvmrMdXWxV3V+hti9E= Date: Mon, 24 Oct 2022 06:08:42 +0200 From: Greg KH To: Bagas Sanjaya Cc: Deepak R Varma , outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: wlan-ng: remove commented debug printk messages Message-ID: References: <4863c6d7-ffdd-1304-981b-9b0644a87f4e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4863c6d7-ffdd-1304-981b-9b0644a87f4e@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 24, 2022 at 10:08:00AM +0700, Bagas Sanjaya wrote: > On 10/23/22 21:13, Greg KH wrote: > >>> @@ -1007,7 +986,6 @@ static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc) > >>> wlandev->rx.cfack_cfpoll++; > >>> break; > >>> default: > >>> - /* printk("unknown"); */ > >>> wlandev->rx.data_unknown++; > >>> break; > >>> } > >> > >> Shouldn't these printks be guarded under CONFIG_DEBUG_KERNEL instead? > > > > No, they should just be removed as was done here. > > > > What if in case of debugging without these printks? I can not parse this line, sorry.