Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6796236ybx; Mon, 11 Nov 2019 15:03:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwo3OmOEKa9U3Jfn044+EcjHJkPRSI4yw7c64pH5X6y4XGWFqlXT2jtGkqVE2KAHLuCGLqX X-Received: by 2002:a50:fb14:: with SMTP id d20mr28292929edq.190.1573513432169; Mon, 11 Nov 2019 15:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573513432; cv=none; d=google.com; s=arc-20160816; b=yULhyvvY7MgF05VO/1K+3SYobwPEYOfgcZfOZH0/D7fZ6vVwYgeuUMUq+tbnz58gDg 3XNV3Y+Y+fpZ1zszOVIDXoFzzqqawGkhQnAuqDCYvsZoW/dUcyiiTekEL3P6CJ5c85v5 sISX+QQqlAPlDwQcA4wxrDpjSDoBOLxG9ZBUJ5OkSkun1K/lgG7CuwFHcp4r/uw9c+ev APtCRWiWWCR8g4JzdI4u4UBBs34KacuOYneA6L90ZlJwUR5a/2mj6UKfHO6k+8vKr5C1 JLbXzIxP3LquSSiFDwJiWJdQF+tUPyKRFObiNpvBzU3vdwtQmp5n2s5CR79af3FYzb2x lZoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ylr4HMhfNGgBDCCU8hGfMRy2/jVTO906yfBM+e4v+z4=; b=Brj6/BKCAjQ1Cl0WK1+Ffu+hOG3acGhF2I/l6IsLGX3PdZmsPYcqAeDEybWxXyIkyN PddkgdIqf0FbzbJhe4ojPXd7yB0jrdbg82H/vFfka2Z9EB6EgcjFU2wi0t01TU6b+qiF 3ezNnkTyvJU6yT9DXzCck0W/M8X770E/Xmd24k6LbKx2GM23G0kqIQNujJiOYIpwEvnB jOt5U2cSI6RlPCkPWcxDRUlxoiJgJoNn5DbwCw06dc9OOgP746MbdjJOY5aCUUmvNlI0 4rSL+iJiXgYrSZEjcjOhX7FwaoLaLBMMwVEEV3G0SQN0Dh8SjUTQphSB5NP7xobsFO4M VpGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CQKri5pl; 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 gx24si10636419ejb.429.2019.11.11.15.03.26; Mon, 11 Nov 2019 15:03:52 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=CQKri5pl; 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 S1727058AbfKKXCN (ORCPT + 99 others); Mon, 11 Nov 2019 18:02:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:58704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbfKKXCM (ORCPT ); Mon, 11 Nov 2019 18:02:12 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4492720659; Mon, 11 Nov 2019 23:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573513332; bh=T++SfRocne6R+FT0e/lITsou/+T1aj32czwC2JdYewE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CQKri5plHXv4HgoJ+hznYR/EVTHZncht0g03GeabqQzNuFkDQoAn9HRNxRxvyQ6rH Bcf1tfMKN6NFERrTVn2O7MLCZ+rP+17cVnPl9jOC9iMGgLjIOb91megU1DFFWn6pT5 2Bls1ZdntaFz/ltxHQfDlZ+AEBX87iFA6r735cYc= Date: Mon, 11 Nov 2019 15:02:11 -0800 From: Andrew Morton To: Ralph Campbell Cc: , Subject: Re: [PATCH] mm/debug: Message-Id: <20191111150211.9f75292d8c057769603edfb7@linux-foundation.org> In-Reply-To: <20191111224935.19464-1-rcampbell@nvidia.com> References: <20191111224935.19464-1-rcampbell@nvidia.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Nov 2019 14:49:35 -0800 Ralph Campbell wrote: > When dumping struct page information, __dump_page() prints the page type > with a trailing blank followed by the page flags on a separate line: > > anon > flags: 0x100000000090034(uptodate|lru|active|head|swapbacked) > > Fix this by using pr_cont() instead of pr_warn() to get a single line: > > anon flags: 0x100000000090034(uptodate|lru|active|head|swapbacked) > > Signed-off-by: Ralph Campbell > --- > mm/debug.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/debug.c b/mm/debug.c > index 8345bb6e4769..752c78721ea0 100644 > --- a/mm/debug.c > +++ b/mm/debug.c > @@ -87,7 +87,7 @@ void __dump_page(struct page *page, const char *reason) > } > BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS + 1); > > - pr_warn("flags: %#lx(%pGp)\n", page->flags, &page->flags); > + pr_cont("flags: %#lx(%pGp)\n", page->flags, &page->flags); > > hex_only: > print_hex_dump(KERN_WARNING, "raw: ", DUMP_PREFIX_NONE, 32, This is the case if PageAnon || PageKsm || mapping. If it is, say, PageSlab then we effectively do pr_warn("stuff-with-no-newline"); pr_cont("\n"); pr_cont("flags: ...\n"); does this work OK? what facility level will that "flags: " line get?