Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2929287rwi; Tue, 1 Nov 2022 13:36:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lVSRfGy20EMbu2sJJMIRbeiFg+SQRJXE4oMs0ZmNxiKnTNXamLKkt3NK0wnDmhfyK7Wdi X-Received: by 2002:a17:90b:1009:b0:213:9716:20b6 with SMTP id gm9-20020a17090b100900b00213971620b6mr21352931pjb.57.1667334965956; Tue, 01 Nov 2022 13:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667334965; cv=none; d=google.com; s=arc-20160816; b=UxPC/lAivBSg0dTYLWYpVIYTJEFRbHBPOqFX3jBdvalO3p7mDhe6NduYMp90yVSglM 03tJqEcuXW1X4dW9shxGRO9wNkO8oVvnhYwH8a8MSurWAgi30ZONxPh/+buu+JgusrTw pDib3SUA/MzypOohkWryStP3HD/Qj79BctsyPWpPnc+Y4i7/X7noWblo1y+dsPsyXBM6 XQ78aBudpkp4W4jJ5hRdWNR+6XBj98Dxt5b1fUJ2BfvsJxEXoIfmiYUmrqS8gc4VGfag UbgZo8FVKKq34CzjamgFPfLuXcJNAwynaDfuHJ7E8FjINgGDaHHHzkIzV8oIhPVPXndv 4nxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=8Gq3bdsDsxpSqZIIEkC5NrsUctQcAb4lvn0k1trEJf0=; b=cMlFCy2deapgv1IbpPCSgdjCY7dpIESos1ayD5jl+Ut2h11C1CCxOW9FBRMsZyr1n1 YDaPKOlTS2ztYjh8vj2vFLV2/YW+u31MRkm8qkN1LaQweIBNk8iDjeR77aJqUU05Z/tx JgBVV5NJU3744BakJ9Es6uLUgut6ugBYizYt6P+Syr9Trq/QP4OQYDLahMEd1wP5nn9k a5/fx2tA/bE/kJypCylFswLkrGHswuXgIVEnxDHVviXfJrdwbLpsvw9QiwboHE3UCfqK Dc/TUSejPtAppUrVRWoBWy14BxAiaBVpI/CTNxQw9tpObjrafZLapIm1WXyLtOvmXzyS PNow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Bo366EaW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a170903019000b001867ea919bdsi15054818plg.25.2022.11.01.13.35.57; Tue, 01 Nov 2022 13:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@gmail.com header.s=20210112 header.b=Bo366EaW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbiKAUfm (ORCPT + 67 others); Tue, 1 Nov 2022 16:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiKAUfl (ORCPT ); Tue, 1 Nov 2022 16:35:41 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 422F5101DE for ; Tue, 1 Nov 2022 13:35:39 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id w14so21692435wru.8 for ; Tue, 01 Nov 2022 13:35:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8Gq3bdsDsxpSqZIIEkC5NrsUctQcAb4lvn0k1trEJf0=; b=Bo366EaWhlb/8e0q983H7Wmt77/fuvPC+0I4zB8GELAdclPq7IhuTetFjcTRzwtQG9 75EEIucbcfZgCUWOyg5Wa7TyVRydWOXI8Xv0pjr0ccPrlKE8TSIc8LvK2H4vo+Ls2glw GxwIaAd6gym1IT8PiMaF1BgYXUqRQplqAmZM7/DIuHQSb8PLTXfMwPQugKV4ixHj1k5j 6bmlk89Z+YKoITSDvx50uk4e01T1dom1vn0Jfmd2i0ccI+J8FGvB5e3yFtxNlIBwIGdW RuoPpo7bTkDe084H9UE8ptGLRtbrHe/clk92XDoK5MrZF10ZQ0/PRCxglFwA1hq0tCVX g+nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Gq3bdsDsxpSqZIIEkC5NrsUctQcAb4lvn0k1trEJf0=; b=SUBVeM9o9JjSFqYJuV6kmxZojoXvIPXioS2R+V6JKZ8LEEL+xnVG4NWDKMosfxe5d4 ogZ3JE0VYunXpNAS4yCz+dz+yXm+uzsyxdB8LrfvKt7/sioFQnbQfXi4fO8Uv/Ew6yzv L17rhHsma8lVhi0xBVrumscBWcQ95MKFDmABTfVG8UEo2BwD9SebB4DNKudhwntjaBAu 3EUP/dDbzYHlEJvW6RcEyElvMxdr6V9kZqccoqltkERRFyrNsZiq3UYyvB5eDzVJgnrp /BLaIlS1pJnVAOWis9jgnWG8DXzTbF1CaQctakTpJfARsDws8jfqRQoDdUa1uicI7152 uIXg== X-Gm-Message-State: ACrzQf3TgZaIePUGmD37TOt9ehlevxjYyJeTTpDcSh3h1DIcp+gSAEA+ BT9h6U9t9cn0lKDAxBC1nzav8fg/+C4= X-Received: by 2002:adf:e792:0:b0:236:604f:1330 with SMTP id n18-20020adfe792000000b00236604f1330mr142633wrm.373.1667334937886; Tue, 01 Nov 2022 13:35:37 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.23]) by smtp.gmail.com with ESMTPSA id fc6-20020a05600c524600b003c6bbe910fdsm13362557wmb.9.2022.11.01.13.35.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 13:35:37 -0700 (PDT) Message-ID: Date: Tue, 1 Nov 2022 22:35:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: [PATCH v4 5/5] wifi: rtl8xxxu: Use dev_* instead of pr_info Content-Language: en-US From: Bitterblue Smith To: "linux-wireless@vger.kernel.org" Cc: Jes Sorensen References: <80aba428-0aff-f4b2-dea5-35d1425982b6@gmail.com> In-Reply-To: <80aba428-0aff-f4b2-dea5-35d1425982b6@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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-wireless@vger.kernel.org Replace two instances of bare pr_info with dev_info and dev_warn. Also make their messages a little more informative. Signed-off-by: Bitterblue Smith --- v4: - Rebased on top of wireless-next. - Feedback from Kalle Valo: - Change one dev_info into dev_warn. v3: - No change. v2: - No change. --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 58e6416787df..019f8ddd418b 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -2015,7 +2015,8 @@ static int rtl8xxxu_download_firmware(struct rtl8xxxu_priv *priv) val8 = rtl8xxxu_read8(priv, REG_MCU_FW_DL); if (val8 & MCU_FW_RAM_SEL) { - pr_info("do the RAM reset\n"); + dev_info(&priv->udev->dev, + "Firmware is already running, resetting the MCU.\n"); rtl8xxxu_write8(priv, REG_MCU_FW_DL, 0x00); priv->fops->reset_8051(priv); } @@ -5413,7 +5414,8 @@ static void rtl8xxxu_rx_urb_work(struct work_struct *work) rtl8xxxu_queue_rx_urb(priv, rx_urb); break; default: - pr_info("failed to requeue urb %i\n", ret); + dev_warn(&priv->udev->dev, + "failed to requeue urb with error %i\n", ret); skb = (struct sk_buff *)rx_urb->urb.context; dev_kfree_skb(skb); usb_free_urb(&rx_urb->urb); -- 2.38.0