Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31673615rwd; Fri, 7 Jul 2023 02:49:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlEo5NEYNgyozdb4O/2JWynPQo+tS+Pes8dfQLJ7b2GwuObR77ZsT5RN4zFhzJHPrwPLt+43 X-Received: by 2002:a05:6808:14d3:b0:3a1:dd99:8158 with SMTP id f19-20020a05680814d300b003a1dd998158mr4952083oiw.6.1688723346243; Fri, 07 Jul 2023 02:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688723346; cv=none; d=google.com; s=arc-20160816; b=M4gdmb+5Fg8hesOyrKv89OKu9h8YHGeHJ0W5uyENJtAo2HqkYfT41WIZ9tQOvQoSjc UpPRnfUdXCiAwwZGssSpuFJFfxE1Qnw3WQMmz/URWK+wlD+Jr1WHT+BOAYO4M7vFjwdl XeAvnwSbQRMOEMS0SNROfAFpNzt/8QHqroqSc7oCnAlwv8jPG7r6q3BlsJWmJXEToeW3 cUFwXoMccMzj+Fti6xkb7+KiqSb/236GJYnR4JEM1s/9XbM0hrujNea5FBk+voTJOzlf pTnG8DWXUH4PRvXUBrtKhdnnFskVA7q3BmxMK3JcMC1OdfbqHfsGo0LBOS4TKVby664U OVdA== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=cQ6MiqQAY1VGb/w/hfnPGDnX9TUYj0dpgibc7hB1q7A=; fh=OVffOdN1pmDuxoBshIPLzMYFNlEf0pa1BSIqpYtjCls=; b=NWaOUnDoOLaTxwaaVupowOH3Oc2NQ3XFRD+jxLrPKE65oXp6MZ71zZuauikzCmmGsM rxOpFNtccYKShR2a+IozPKgptHarpP1jvHa44ieF0iZSFozTR39Y9zfnZNANzK/UM3Mm OMq7x2hDzPAdFaiA6daddvXstAhzMg8+yhcSykGkrTHBN3W0tVnC+uZ4c//eZWu9u75N OgKwB47GjuN1hHlZnVQOZ9oxqMgqjfD8A1hPz7wtlp5878C/CnhjVpJEsv2CpaDUbC// q7Q9O5u/V5bBXhT6VwhsXiybM+a0ghJJ4tJu6fHmHuAbXjCZbpCYawO908H430AZH7H/ c1Rg== 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 n9-20020a17090aab8900b00265817d03b5si1734336pjq.164.2023.07.07.02.48.54; Fri, 07 Jul 2023 02:49:06 -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 S232605AbjGGJLA (ORCPT + 59 others); Fri, 7 Jul 2023 05:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232370AbjGGJK7 (ORCPT ); Fri, 7 Jul 2023 05:10:59 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39EA2119; Fri, 7 Jul 2023 02:10:53 -0700 (PDT) Received: from [IPV6:2001:250:4000:5122:bd1d:72:5112:b20e] ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=PLAIN bits=0) by mx1.hust.edu.cn with ESMTP id 3679AL2c005927-3679AL2d005927 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 7 Jul 2023 17:10:22 +0800 Message-ID: Date: Fri, 7 Jul 2023 17:10:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3] wifi: ath9k: fix printk specifier To: Jonas Gorski , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= Cc: Kalle Valo , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230706111700.14305-1-dzm91@hust.edu.cn> <87cz15s2gv.fsf@toke.dk> Content-Language: en-US From: Dongliang Mu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-FEAS-AUTH-USER: dzm91@hust.edu.cn X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 7/7/23 00:04, Jonas Gorski wrote: > On Thu, 6 Jul 2023 at 13:39, Toke Høiland-Jørgensen wrote: >> Dongliang Mu writes: >> >>> Smatch reports: >>> >>> ath_pci_probe() warn: argument 4 to %lx specifier is cast from pointer >>> ath_ahb_probe() warn: argument 4 to %lx specifier is cast from pointer >>> >>> Fix it by modifying %lx to %p in printk. >>> >>> Signed-off-by: Dongliang Mu >> Third time is the charm! :) >> >> Acked-by: Toke Høiland-Jørgensen > But do we *want* to replace %lx with %p? Because this now causes a > change in behavior, as the kernel will omit the pointer's address, > while before it printed the actual memory address. Using %px would > have kept the original behavior. This is why I made mistake in the patch submission. I think %px is more suitable and generate a patch, but then checkpatch.pl thinks I should use %p instead. I change the code change, but forget the commit message. > > So if the change is desired, it should be noted in the commit message. > > best Regards, > Jonas