Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31956719rwd; Fri, 7 Jul 2023 06:52:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcZpezqzDJwTQb1bsHJ8xKWxyE4U1fzgssECuW6veKaKgO6WIVWyaMqwYLza1U/wBWnzbi X-Received: by 2002:a05:6808:3023:b0:3a3:e86b:6e8c with SMTP id ay35-20020a056808302300b003a3e86b6e8cmr2563949oib.48.1688737970088; Fri, 07 Jul 2023 06:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688737970; cv=none; d=google.com; s=arc-20160816; b=U7pjA7HLH4mXCESvvRzv0GlvTGiG2HnMg6/1BEvNmKbYBR52op39cQFbzohyBc9xB4 PGt6YI9tRYs9R5Nh7gIVWuJw48IGe7J4MAMHbC20S35uv5K2HvBZ7uBmMJcCdTUExLDO RfdyqZd1V7r+QbHKzioz6OAEunVPyO3ior9AZSYI8/E2Zs/yfkL+HSy8vihfkzqXvJGh 0wRtwT/qLDGFrmk5yED8vNiOR+e1b17ugcp6hBtl1AUN3K54Ld+9vhnK9RPhc4RTxjoI bdHu3JbQtZ7HgM8jIwnO8nUgQ4cGXl5igXPWqoHne9JClZiYDGBTwn5ugy1vOgeG38LE z21g== 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:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=uCuhTufCRaaXdnLKFmIMWVnD1T8kuwipzJVxUSjwA7c=; fh=TGhRk7uImJHmYvApEdbKsoYFOVqhO3a77xJt/10pFpA=; b=VUeD/3gEnEkKNUXDPKXxoryFu27SA9tfjxPEUyqW88TdXb/WwbQAeqlKI2CJcw0l2K k/ikL057YeAMRJkI90VEkDdzW4z8MuJMeH2l0jhgLpaNol9DDfeU7Z4tyDOKUcl9k0Rj OMMELdMkcdekFW4cls4ccFjKolHtPoT4Kr60sPdgLR8u6Uw5Md5k4sUSq3I+wxKW+91h beEMTbDE+xHLuoUW73nezMfKljrmVEEC04x6yn1iZ08DTy6hdiE6BTEy3yhNVnvoL/I6 rwrGCTNGnrixV4LR6vqd0PAFZrgsnHON73QfPfk/Tf4kDIn0zvVX/ZP9o+4FFwQH+EDz vHUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=dlsquq97; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a63fe4e000000b0055a9b4f5f65si3834414pgj.82.2023.07.07.06.52.38; Fri, 07 Jul 2023 06:52:50 -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=@toke.dk header.s=20161023 header.b=dlsquq97; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbjGGNo4 (ORCPT + 59 others); Fri, 7 Jul 2023 09:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjGGNoz (ORCPT ); Fri, 7 Jul 2023 09:44:55 -0400 Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 401F426A9; Fri, 7 Jul 2023 06:44:44 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1688737482; bh=uCuhTufCRaaXdnLKFmIMWVnD1T8kuwipzJVxUSjwA7c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dlsquq97LlWh4Cq1t+/166gbWWGi49X8vKT2jo9hCbgx2o6rZldmedRqPEtSm7kE8 6KXAX1Bj1320Cafe/JT47wcu9nh850XAufj3lH6P55pC4WEzAHDOnWboH1JA9HwyIT +JQBikOCgPU+bSi28Ltg2Vx3Op4Lka3laaMYLz4/4RM/1gSInqLXSRh5/rOoFDeE42 yEDdKU8rlepQ8iQijuNr5k7KvRDyAOKuVc361adBf0vmU5jm0BDEewfWdgwSb+189f oeaycFK4EB4lMmC1AFQXNB/Brdp49xro2DJt0BT4JTsrTFNJmYNbTiq5FbSu8emcqW E5cOVFIGxpEfw== To: Jonas Gorski Cc: Dongliang Mu , Kalle Valo , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] wifi: ath9k: fix printk specifier In-Reply-To: References: <20230706111700.14305-1-dzm91@hust.edu.cn> <87cz15s2gv.fsf@toke.dk> Date: Fri, 07 Jul 2023 15:44:41 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87a5w7hm46.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 Jonas Gorski writes: > On Thu, 6 Jul 2023 at 13:39, Toke H=C3=B8iland-J=C3=B8rgensen 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=C3=B8iland-J=C3=B8rgensen > > 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. So this is basically an informational log message, which really shouldn't be leaking kernel pointer addresses. So I think %p is the right choice here, and if someone wants to see the real address for debugging they should be booting with no_hash_pointers. > So if the change is desired, it should be noted in the commit message. That is a fair point, documenting this in the commit message would be good... -Toke