Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp196637imm; Fri, 21 Sep 2018 12:41:54 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda7Qf/YZiHX0fPz1d+Fa/HVwwX8tPFdDhhKZKvMUtOuVPKLBzP05Jb0QSipyqzoKfTML/OS X-Received: by 2002:aa7:800f:: with SMTP id j15-v6mr48085728pfi.174.1537558914579; Fri, 21 Sep 2018 12:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537558914; cv=none; d=google.com; s=arc-20160816; b=kAyKO83WeKWc8WP5GhsLUEWqPXRZiC77GB3iClNmuHrH77tiX9IJyElVTujShxdDbo m6wtM7Rj97TsqIUCDbdVVTFk344XP0cEJqo/yPxD+xbxAMjHwv/tK+upvJl4UgFNOlR7 O5+n4psQ8dE2ckvHqIil75uQRuvmKuQg54XE6RUN3ChcZB1YGrrVDcQl7KTSOfPi5O7L lREiQzLl6OJkKTaNorG5Tla4uFovHnhYtqTrUTFU9rsZaAKyS2Kdk8c6j1c8Fsx/8zAb +7fZPYfKiwQqNxkQP0oV6pB+ke7xv04WNMIzVY1AsZIXWD9c8hPdZUaa5BPilLPto0iU BmCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=ZadHESRdpB0npPoL39kRX9wNdzJwkC44Cgwa4Z1pEsU=; b=NYxihEQBtO3viVlnVA6T1CN3i4DTGvCrLuXa7mkZXiPQe3TgDTcwaGU5XrlPmjTzmO FdrXoKXsNBSg6s8YoYNMmXeCwsOW3cn7yxM7ygibXCskjvjZlxvZrFO7XmhwfnHBi+FA aUFndjBiPqg09vLseEc/uifbB0QWBZg+3hzmXmm8ENSzi7a2O0esrv0EZgX8yhF2I44a HQBTWTZxQYQoaFP+ThZKz6YI/th9Xeplzjk5pSbkiidNhM8ZNiRFfIsfWeR8aTkJXC6v jIcJwdGfbBs/l3IQKHhgYtFsuhWTQSMhSi5LaHwID2CVExr+RSMn3GZ+ri19gUjKhnIy ltZQ== 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 x7-v6si7524237pga.638.2018.09.21.12.41.38; Fri, 21 Sep 2018 12:41:54 -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 S2391323AbeIVBbl (ORCPT + 99 others); Fri, 21 Sep 2018 21:31:41 -0400 Received: from ale.deltatee.com ([207.54.116.67]:45888 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391102AbeIVBbl (ORCPT ); Fri, 21 Sep 2018 21:31:41 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1g3RIi-0002FT-Hh; Fri, 21 Sep 2018 13:41:17 -0600 To: Pasha Tatashin , Alexander Duyck , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" Cc: "mhocko@suse.com" , "dave.jiang@intel.com" , "mingo@kernel.org" , "dave.hansen@intel.com" , "jglisse@redhat.com" , "akpm@linux-foundation.org" , "dan.j.williams@intel.com" , "kirill.shutemov@linux.intel.com" References: <20180920215824.19464.8884.stgit@localhost.localdomain> <20180920222415.19464.38400.stgit@localhost.localdomain> From: Logan Gunthorpe Message-ID: <4d984974-ff16-35e4-76ff-f5e43e5e90da@deltatee.com> Date: Fri, 21 Sep 2018 13:41:12 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: kirill.shutemov@linux.intel.com, dan.j.williams@intel.com, akpm@linux-foundation.org, jglisse@redhat.com, dave.hansen@intel.com, mingo@kernel.org, dave.jiang@intel.com, mhocko@suse.com, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, alexander.h.duyck@linux.intel.com, Pavel.Tatashin@microsoft.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v4 1/5] mm: Provide kernel parameter to allow disabling page init poisoning X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-21 1:04 PM, Pasha Tatashin wrote: > >> + pr_err("vm_debug option '%c' unknown. skipped\n", >> + *str); >> + } >> + >> + str++; >> + } >> +out: >> + if (page_init_poisoning && !__page_init_poisoning) >> + pr_warn("Page struct poisoning disabled by kernel command line option 'vm_debug'\n"); > > New lines '\n' can be removed, they are not needed for kprintfs. No, that's not correct. A printk without a newline termination is not emitted as output until the next printk call. (To support KERN_CONT). Therefore removing the '\n' causes a printk to not be printed when it is called which can cause long delayed messages and subtle problems when debugging. Always keep the newline in place even though the kernel will add one for you if it's missing. Logan