Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp492798imm; Fri, 17 Aug 2018 01:20:24 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxKvNBMdCBH2mh7dAa1rUc2qVB3bFYdDY3lhFpNLFisFvPIM8pWh+RsLBhtMmQMtNmA9Gna X-Received: by 2002:a62:f0d:: with SMTP id x13-v6mr35288945pfi.123.1534494024794; Fri, 17 Aug 2018 01:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534494024; cv=none; d=google.com; s=arc-20160816; b=Vose8Q6BK7xtcx2G3PY5u4qu72kP6BOAphCuKdUe8suvpi8FizVss65xaBgCEa4oLq umPzXCbO/rZ51ThbTKEFGDPIEaf4GhBJeYzr8iBGyf/9QEDsmew7lB8AAFpCuw8AVxuK tzlnTxmAI51p0uoWR5tDsCE4rf9fhdoAQb9Oa+PYgJeWziqSF06P9AFZTX5hFfwBRdqF WKz/6XcgiYhWUJCGXakDFeiJn/Og51GkiVBkIvf8GiptBpvUFey4XanavRi4oVAfSQNV CAK0NVRFWRiAVGlCb2IlEG13lNt0kn/gj3nLDzM6W0Wgd5hgQGxcK1FhCWkgCQBdA2k3 FRzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=h2/EyHCBjvSgoAA8rSu4LMziSKWtsd85lo6X3gAjej4=; b=aVjza/ZIFcSMgXIY2XcTz00cviGRm1aZt5zK0cGaSvR3uGVwpBUBzd7rqb/t9D7PpF 2tV+0s7FFyvPiWb+7wIWtbsVWNzwaeNtwahWY98J3BSlBSdsbg/SSjkHgReDsllX6nXl RV8cDqHlvRuFjChmiKkaHnMBq8YBmKplscZh1bvkktCgUC1W7AkAC3Z2KDJdduR/x0Xi oQrpALmKSSekX6ml+cpRMPG+hzbxx+V9YOkcsGznhTZmjEAaDMZ/i/NYhrRY89TBWF5l NSOtZZlRGyT4pQyXNqVwgJK0FpvEZkm8cboDPnB4v3knVTlQSqTzN5d3LZk9NFhNvfus S8/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66-v6si1700779pfk.268.2018.08.17.01.20.09; Fri, 17 Aug 2018 01:20:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbeHQLVX (ORCPT + 99 others); Fri, 17 Aug 2018 07:21:23 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:41432 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbeHQLVX (ORCPT ); Fri, 17 Aug 2018 07:21:23 -0400 Received: by mail-wr1-f52.google.com with SMTP id j5-v6so6344120wrr.8 for ; Fri, 17 Aug 2018 01:18:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=h2/EyHCBjvSgoAA8rSu4LMziSKWtsd85lo6X3gAjej4=; b=KJLqIoZwEpnyF1SkE06hsi/eEIXALRzn4mSMhvjSFPP7Wnq6FusVgOgwj7MJzG7EF7 j0BpfNltA5pQ6QBGN8ArnuZW/9Caw3rLMdKP7Vw+DUyTm97f4wO1A+A6al/jDJjcrIIw 78tvUtWuSqJNmwsrJfZQ5iBPt9KoIJom2sUCa59uOmMMD/OWLhiQkWHzyfxfLrkL68bs Nc2T+ETWFf9Vsc1makslH1pGHJPOlhce2grAjhYRG2NZYzUPhSRO/seIMoPBzEfgAJ5Q ZtPHMTpx0BwfDpbg/7Thq7/FMUvuucZj7l/OmLoNr/7t1TWraEGGcYn4jw391swBDSS6 mINg== X-Gm-Message-State: AOUpUlFltvJ8Kg5xbI99/ZpFHbakfeSE2wZk0pOQD4mu1vFAYRimYvH4 QtGZOoT5aPA3Z4X9QPRZ70I= X-Received: by 2002:adf:f906:: with SMTP id b6-v6mr18213012wrr.28.1534493935451; Fri, 17 Aug 2018 01:18:55 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id y5-v6sm4012014wrd.5.2018.08.17.01.18.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Aug 2018 01:18:54 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id E0F1012492E; Fri, 17 Aug 2018 10:18:53 +0200 (CEST) Date: Fri, 17 Aug 2018 10:18:53 +0200 From: Oscar Salvador To: David Hildenbrand Cc: 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" Subject: Re: [PATCH v1 5/5] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages() Message-ID: <20180817081853.GB17638@techadventures.net> References: <20180816100628.26428-1-david@redhat.com> <20180816100628.26428-6-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180816100628.26428-6-david@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. > +#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