Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4495162rwb; Tue, 8 Aug 2023 09:15:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxs2jUI+hMqz7AtxkOB5BenF5hagdpDsSqmkknEMuh9AyimxObvEhaRa2hCKN2gokJTi7U X-Received: by 2002:aa7:c251:0:b0:523:df1:ba15 with SMTP id y17-20020aa7c251000000b005230df1ba15mr236432edo.21.1691511312238; Tue, 08 Aug 2023 09:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691511312; cv=none; d=google.com; s=arc-20160816; b=V6tAyMQEdrGcF1MckhTH4KIxQsWAVhYvDgaLFSqLZOw75G2MzzspfzbbKPYnrFS7r0 ZjsYfZpfkMnzqtuVUckPio7U9E1yXGLfTck33NOeEVTF2Dm44cwgaFdqEXtrLK5ijFE4 HXbdwIcr/fl/QT9nBJf/7yLz5hgbnIon9NzONGxKmRv9CrJyjozV/dVIY4DVuAf+S6Hc WBh5P0omtGTV223XN5100qJbC4knbhD95ELddMDccumRIswh9eikxy2XyBwgKIBfW389 E3xlan+6k2gWFRdCmANGCXfbdVHr9eHgcuEf4fTcCwKtghxybWbb2zumPwZddOPPs7YQ +ACQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=03I/bUxe2mqzZovzi+XkvoxD40bgrVG2gPM8HhL05ME=; fh=HP35zYPWYQQCM7BzHrkBiqNA6SCe+88B5x6+Um8TSEA=; b=D2h87eYqqmosWT2N4xRl5B8ffN+jqxuiP9eXgmX3K96gX0I8VqIGuffSajPmrHF3ax BHbXN6zhj7zycH48oJ0vrPcfygmKe4yth2oLviDU/rAGMdNLyVYgBh1AaaxXIyytNcjo LArgO8Cb+SEcF+n+8S1HRt5aesJ+sGspklydubR1e1RuLunzU15OfeIvdzGhvUNec000 eHpPphT55gU/S5SlIU/j32P44UYmQv6XW4EHMmZ7DMdKskiN2yNl9WW3ZSsR2LDEh6wN CUhTdz2uc94sFJEHJ4tjwcIQlkIPY0OrWWRKOq1hCvIC/ICPT4Mfv9Y0bw+HytbDEQ+p aICw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020aa7d9c7000000b005223a53ce0esi7798392eds.323.2023.08.08.09.14.57; Tue, 08 Aug 2023 09:15:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231950AbjHHQN4 convert rfc822-to-8bit (ORCPT + 57 others); Tue, 8 Aug 2023 12:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232123AbjHHQM6 (ORCPT ); Tue, 8 Aug 2023 12:12:58 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51A9F7ED8; Tue, 8 Aug 2023 08:47:07 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 3788UJm14028255, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 3788UJm14028255 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 8 Aug 2023 16:30:19 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 8 Aug 2023 16:30:36 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 8 Aug 2023 16:30:35 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Tue, 8 Aug 2023 16:30:35 +0800 From: Ping-Ke Shih To: Dan Carpenter , Timlee CC: Kalle Valo , "linux-wireless@vger.kernel.org" , "kernel-janitors@vger.kernel.org" Subject: RE: [PATCH] wifi: rtw89: fix a width vs precision bug Thread-Topic: [PATCH] wifi: rtw89: fix a width vs precision bug Thread-Index: AQHZybpDmVTowi+UH0ybzDOrOQuAoK/gEY2w Date: Tue, 8 Aug 2023 08:30:35 +0000 Message-ID: <63f8219b49604fc9805319c391ee44bf@realtek.com> References: <0700c7b9-bfd3-4aa6-82bf-5bf3c74644e1@moroto.mountain> In-Reply-To: <0700c7b9-bfd3-4aa6-82bf-5bf3c74644e1@moroto.mountain> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,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 > -----Original Message----- > From: Dan Carpenter > Sent: Tuesday, August 8, 2023 1:36 PM > To: Timlee > Cc: Ping-Ke Shih ; Kalle Valo ; linux-wireless@vger.kernel.org; > kernel-janitors@vger.kernel.org > Subject: [PATCH] wifi: rtw89: fix a width vs precision bug > > The "buf" is skb->data that comes from the firmware. We want to print > "len" number of bytes. But there is a missing period so the "len" > variable is used for formatting (width) instead of limiting the output > (precision). > > Fixes: cad2bd8a136c ("wifi: rtw89: support firmware log with formatted text") > Signed-off-by: Dan Carpenter Thanks for the fix. Acked-by: Ping-Ke Shih > --- > drivers/net/wireless/realtek/rtw89/fw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c > index 2811a94b5f69..bcd9050f989f 100644 > --- a/drivers/net/wireless/realtek/rtw89/fw.c > +++ b/drivers/net/wireless/realtek/rtw89/fw.c > @@ -1165,7 +1165,7 @@ void rtw89_fw_log_dump(struct rtw89_dev *rtwdev, u8 *buf, u32 len) > return; > > plain_log: > - rtw89_info(rtwdev, "C2H log: %*s", len, buf); > + rtw89_info(rtwdev, "C2H log: %.*s", len, buf); > > } > > -- > 2.39.2 > > > ------Please consider the environment before printing this e-mail.