Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp132383rwi; Wed, 12 Oct 2022 17:19:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55Y8NzbUXF90n9rrpRnTkA+50sisOTqslCRebiJNkHQzeo+1WEwwTIJIEpycp99DaS/jE6 X-Received: by 2002:a05:6402:51c6:b0:45b:d0d7:4b41 with SMTP id r6-20020a05640251c600b0045bd0d74b41mr22609972edd.219.1665620343836; Wed, 12 Oct 2022 17:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665620343; cv=none; d=google.com; s=arc-20160816; b=eRStv8REOipUBoPiGsyiKqOZPXk8+7bCuuHbeyDwCJunvBulnJQz8LlDCVyg8aC01r MhEx8odviPqwyJA2uHQOAy98aF55L5egW4DaA2Us9fZ1s4rCB9q3N2Wpfbz832E2H6xG sqGd9LDYNXlMbIexQVrE7YbPBlO4g9x+PU1sV9lcGaM4s304zuXlnz/cLEu5JGMtKR3q p63M++pZ23SVlIks3PmHfaXnS5ZMo14s+vyDxKmrIfYI/sunmpkCSbsYemqYEmIStRin 1jOTK8X0tyTUGJUCLhAmWs8kbrN1G8ObmpLbZdnME+RxGR8Xqqlp+N4zIvMNByi83YEi b82g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Dj+xk9B/WzV60PeoiH4rRueM/tlpstT2GrTTrfXavJI=; b=QSW8pEp2a113pwb7zvGQ3mFZhD/Qqp+R+d16U0xFTEZgB9siJHBX+EQ45U7vWsUcrl n94cBLvUUAL01wM2eaGm+sNxf0WDQ2+QvK879JmWSDsX3zRvvqtq8HROS9uMukAabfiB TQ5rUaj+iWiTeBc8sxbLhfX4G3xPAHNNpuMc/Ay2viVazsMayscFK4PVVmv2NkREsvnJ 1i4ZbWuKKnGtda91rRF+//ILOqbijfV9qmQ/ttlxNsMWwyqHoqvB72NzTTEslRhRygGs Op38bS+XVn6tP/tUUV4/ZZXVAeALurUE5KbZz0FoaQZ2wMMWtSK4J/Oz/AJw4qjZ1Zde C1Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOtPlrwW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du18-20020a17090772d200b00787c0e9818csi15695106ejc.568.2022.10.12.17.18.33; Wed, 12 Oct 2022 17:19:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOtPlrwW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbiJMAQD (ORCPT + 99 others); Wed, 12 Oct 2022 20:16:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiJMAQB (ORCPT ); Wed, 12 Oct 2022 20:16:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 553C5D2CE7; Wed, 12 Oct 2022 17:16:00 -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 E2736B81CBE; Thu, 13 Oct 2022 00:15:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21CDCC433C1; Thu, 13 Oct 2022 00:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665620157; bh=PFXDyzCvVi7sPptlSoSC5COyic15dxm5s3UNNFHXn/0=; h=From:To:Cc:Subject:Date:From; b=XOtPlrwWUxloBn1+WhVRPXUoYOIM9vdIdYagpVOsvW53aOmxhZOJwbuU0wuWpPXHs 6tdInbZNxjA/K/CHYz+hqljozqZDqqN6qKY5YqOrH/CAj1k+UMqBNuI0bZxbSRDVtW 0tQyXQ2Gz6tmzSJzOPHqxrZNEJ3uRzF2PRk0uH51BqH7dL5oiEc1Hhha/iKCpt5OdB l1Y6N1oaws0OCFbpkZMimSTwyDMokclJakuNHTnlUOlK0oJKsZ6VlW8oj56ARy9hl5 wdKP/++I9r+YugNQ4jFhcjupdSB0wz/w9Q3g91HDYuqQDJtzk3z+6dnyjAtxgYHdLj TVQOGUbOaxTNw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Michael Straube , Philipp Hortmann , Greg Kroah-Hartman , Sasha Levin , Larry.Finger@lwfinger.net, phil@philpotter.co.uk, martin@kaiser.cx, paskripkin@gmail.com, gszymaszek@short.pl, saurav.girepunje@gmail.com, makvihas@gmail.com, linux-staging@lists.linux.dev Subject: [PATCH AUTOSEL 6.0 01/67] staging: r8188eu: do not spam the kernel log Date: Wed, 12 Oct 2022 20:14:42 -0400 Message-Id: <20221013001554.1892206-1-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Straube [ Upstream commit 9a4d0d1c21b974454926c3b832b4728679d818eb ] Drivers should not spam the kernel log if they work properly. Convert the functions Hal_EfuseParseIDCode88E() and _netdev_open() to use netdev_dbg() instead of pr_info() so that developers can still enable it if they want to see this information. Tested-by: Philipp Hortmann # Edimax N150 Signed-off-by: Michael Straube Link: https://lore.kernel.org/r/20220808065023.3175-1-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/r8188eu/hal/rtl8188e_hal_init.c | 3 ++- drivers/staging/r8188eu/os_dep/os_intfs.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c index 5b8f1a912bbb..58a193334b91 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c @@ -688,6 +688,7 @@ Hal_EfuseParseIDCode88E( ) { struct eeprom_priv *pEEPROM = &padapter->eeprompriv; + struct net_device *netdev = padapter->pnetdev; u16 EEPROMId; /* Check 0x8129 again for making sure autoload status!! */ @@ -699,7 +700,7 @@ Hal_EfuseParseIDCode88E( pEEPROM->bautoload_fail_flag = false; } - pr_info("EEPROM ID = 0x%04x\n", EEPROMId); + netdev_dbg(netdev, "EEPROM ID = 0x%04x\n", EEPROMId); } static void Hal_ReadPowerValueFromPROM_8188E(struct txpowerinfo24g *pwrInfo24G, u8 *PROMContent, bool AutoLoadFail) diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index aa100b5141e1..f5e3660555a1 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -636,7 +636,7 @@ int _netdev_open(struct net_device *pnetdev) if (status == _FAIL) goto netdev_open_error; - pr_info("MAC Address = %pM\n", pnetdev->dev_addr); + netdev_dbg(pnetdev, "MAC Address = %pM\n", pnetdev->dev_addr); status = rtw_start_drv_threads(padapter); if (status == _FAIL) { -- 2.35.1