Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9839659rwr; Thu, 11 May 2023 23:17:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7a3IVkPetSPu3GqQeQeAjKpxhH24hGW8ucU8mb2yvc/z2Gw8Tuy2ZWTQSYzUwFN/embrmE X-Received: by 2002:a17:902:c40a:b0:1ab:28ec:bf10 with SMTP id k10-20020a170902c40a00b001ab28ecbf10mr33585038plk.51.1683872279308; Thu, 11 May 2023 23:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683872279; cv=none; d=google.com; s=arc-20160816; b=ewBg9oZTf7DKo4MCPNUba+o/eE2qTXfxc6+SED6jDjpgDmjRoGs4XNPeQGBvUfhgZH sQDRNCw4I0vxBtxtL2nvn2saJGm63E8/FHmIGW5jhlv3v6pRL/vbXS5eQIDNP6n6g4JQ +EP0j7D80Q4omNUk93tBxmAcgUmpCeVZcVpjhKcxMpWfzmEubIQrRyIQ5pYItis+l50J UnxQD9LsdqrOQny9NlUTyx+iO06WUPBiwgnWhGtt7SrS/HfRDYk9tPig3NHDYk52q4O9 JH1gpr/ikc/dHiwnNU2UzU8E7RNW268FYhOujCw+zMfD5xxyoQ4LgpMcsKIbaI8bVhkh QHzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=785mKCMYbbHwy3Zc9qBnsbvjDnOyAW4pwx82ir1h7Zo=; b=FmuZ9C8hBLWHWCFiYfoAJ0sdZ0Mh0P7efwNrdS5mqyBa4GDuaXszhPmogmL03Hd91X cEiR+X1RXrurxOTm9TaswIWuICrCFqnii8UV8hSIzeBQCx/KIxwK36zvH110mtczahEm PnAaPXYLCxEWB9aNQuD8MoMOJuoiYRU4nWvf9GhlWsG4VY9e1Wv3U9Mqb7KoUwuDeFzu Lw0xWij4IyzkfimSfTOS1IFXlCTfhHbxXXJwOW+WTuxRJz9/g/jpwXaVq3iQiVGV0Y+q 2RMhfLrxy1TxcnSDbaVMpiTX1lbcQ6ksvmNNndksn0yk8qkSeDhKjGSntGt4NtVoH5Ab OMPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZAvrCPi; 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 o18-20020a170902779200b001a99941abbfsi8452914pll.338.2023.05.11.23.17.45; Thu, 11 May 2023 23:17:59 -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=AZAvrCPi; 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 S239957AbjELF4M (ORCPT + 99 others); Fri, 12 May 2023 01:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239923AbjELF4F (ORCPT ); Fri, 12 May 2023 01:56:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87BC4ED7 for ; Thu, 11 May 2023 22:56:03 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8E76164D2C for ; Fri, 12 May 2023 05:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE6BFC4339B; Fri, 12 May 2023 05:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683870963; bh=zFLjxJcoqygPEa3FU3vOWPjgI0sHhm93uxHO43ygYeo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AZAvrCPitPX7thRA60FDRBXcj0NX4oJG3KZPQwQKlwhu1nwYHP3lix77osMKiaXXj h8EsKY3Emo4ahgnHmhqhEj20EZLKcP9qy7HASmMbPYaRHQYb/aru4zixXyKvgKD3QH CRek2j1FBMxtWyDeKBrciauu7wmteeM4or6KDUMr6isLXt1z3N+D/HdYuaWi41ZwkS 031eqbI4S9tdczzdpFfK/mgpuMvjFmIzeSfNUGfVdi21kk+MxSylIQJCZ/iC0TBYZM /xbmKHCR9ftWQlsPX/et5mqus0Qslq9BMvOcs9N97ujuAw2fwSaLFdjr4WC6HgoeMU C59MxF+s9AwzQ== Date: Thu, 11 May 2023 22:56:01 -0700 From: Mike Rapoport To: Rick Wertenbroek Cc: rick.wertenbroek@heig-vd.ch, David Hildenbrand , Oscar Salvador , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memory_hotplug: Fix format string in warnings Message-ID: <20230512055601.GG4135@kernel.org> References: <20230510090758.3537242-1-rick.wertenbroek@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230510090758.3537242-1-rick.wertenbroek@gmail.com> 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,T_SCC_BODY_TEXT_LINE 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 On Wed, May 10, 2023 at 11:07:57AM +0200, Rick Wertenbroek wrote: > The format string in __add_pages and __remove_pages has a typo > and prints e.g., "Misaligned __add_pages start: 0xfc605 end: #fc609" > instead of "Misaligned __add_pages start: 0xfc605 end: 0xfc609" > Fix "#%lx" => "%#lx" > > Signed-off-by: Rick Wertenbroek Reviewed-by: Mike Rapoport (IBM) > --- > mm/memory_hotplug.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index 8e0fa209d533..9061ac69b1b6 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -325,7 +325,7 @@ int __ref __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, > } > > if (check_pfn_span(pfn, nr_pages)) { > - WARN(1, "Misaligned %s start: %#lx end: #%lx\n", __func__, pfn, pfn + nr_pages - 1); > + WARN(1, "Misaligned %s start: %#lx end: %#lx\n", __func__, pfn, pfn + nr_pages - 1); > return -EINVAL; > } > > @@ -525,7 +525,7 @@ void __remove_pages(unsigned long pfn, unsigned long nr_pages, > map_offset = vmem_altmap_offset(altmap); > > if (check_pfn_span(pfn, nr_pages)) { > - WARN(1, "Misaligned %s start: %#lx end: #%lx\n", __func__, pfn, pfn + nr_pages - 1); > + WARN(1, "Misaligned %s start: %#lx end: %#lx\n", __func__, pfn, pfn + nr_pages - 1); > return; > } > > -- > 2.25.1 > > -- Sincerely yours, Mike.