From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by kanga.kvack.org (Postfix) with ESMTP id 9935D6B1371 for ; Sun, 19 Aug 2018 08:34:12 -0400 (EDT) Received: by mail-pg1-f199.google.com with SMTP id l65-v6so2194914pge.17 for ; Sun, 19 Aug 2018 05:34:12 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q65-v6sor124024pga.71.2018.08.19.05.34.11 for (Google Transport Security); Sun, 19 Aug 2018 05:34:11 -0700 (PDT) Date: Sun, 19 Aug 2018 20:34:03 +0800 From: Wei Yang Subject: Re: [PATCH v1 5/5] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages() Message-ID: <20180819123403.GA22352@WeideMacBook-Pro.local> Reply-To: Wei Yang References: <20180816100628.26428-1-david@redhat.com> <20180816100628.26428-6-david@redhat.com> <20180817081853.GB17638@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180817081853.GB17638@techadventures.net> Sender: owner-linux-mm@kvack.org List-ID: To: Oscar Salvador Cc: David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Stephen Rothwell , Pavel Tatashin , Kemi Wang , David Rientjes , Jia He , Oscar Salvador , Petr Tesarik , Andrey Ryabinin , Dan Williams , Mathieu Malaterre , Baoquan He , Wei Yang , Ross Zwisler , "Kirill A . Shutemov" On Fri, Aug 17, 2018 at 10:18:53AM +0200, Oscar Salvador wrote: >> failed_addition: >> +#ifdef CONFIG_DEBUG_VM >> pr_debug("online_pages [mem %#010llx-%#010llx] failed\n", >> (unsigned long long) pfn << PAGE_SHIFT, >> (((unsigned long long) pfn + nr_pages) << PAGE_SHIFT) - 1); >> +#endif > >I have never been sure about this. >IMO, if I fail to online pages, I want to know I failed. >I think that pr_err would be better than pr_debug and without CONFIG_DEBUG_VM. > >But at least, if not, envolve it with a CONFIG_DEBUG_VM, but change pr_debug to pr_info. > I don't have a clear rule about these debug macro neither. While when you look at the page related logs in calculate_node_totalpages(), it is KERNEL_DEBUG level and without any config macro. Maybe we should leave them at the same state? >> +#ifdef CONFIG_DEBUG_VM >> pr_debug("memory offlining [mem %#010llx-%#010llx] failed\n", >> (unsigned long long) start_pfn << PAGE_SHIFT, >> ((unsigned long long) end_pfn << PAGE_SHIFT) - 1); >> +#endif > >Same goes here. > >Thanks >-- >Oscar Salvador >SUSE L3 -- Wei Yang Help you, Help me