Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp961456ybc; Tue, 12 Nov 2019 11:55:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwmVtgsCumiccON9Yt9Yp5ftnliMU8D/4W6g56n6JbDTjRp40GS0mMb6QpXIChFh/gb3fOQ X-Received: by 2002:a17:906:11cd:: with SMTP id o13mr29975693eja.272.1573588553621; Tue, 12 Nov 2019 11:55:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573588553; cv=none; d=google.com; s=arc-20160816; b=FevrqNmwiCrky7HVFeXOh4CaX3TGfuFBxVQytOYT8ohk+tUE2u5iKhH1o+Qp0sXALB R/Ay7CrxQpDhq8LH1DtKoErJueCSc+VQ5HD1p72E/Jq0cchHHrCEihuZb/z7Rnko5I/H FWDK7+z14xmTzdtO/p+eHI2SyKqKu/wYdpN8Ly7659DHhgK7xO7jGEJnUIOEZBoCaHtH lk4apjwjKQ1iCGmuYWVNYGR3G9CYkl4jHwKWCF6Y8XaJ3kgrhdhLnCFTUh84QsR6isO8 pNBzXKX1nJ4kUwhb2d+yjMglSqxrqPk8rJlu7DccSJ5QX0BT+uvIgYq8i5IKCkxKre9T dGKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pqt6+3OL+HVkzSWOLZR1gcCq624ledyYdP7VW17VDYM=; b=jvPMw+nV4j/WCgtn6PEe0a7hkq7IIxfhMwKHcFeIfFzWKu2UvsNCeTRkHsbdyLwiI+ P4lD6O6hpyvz+85OexyBDjd6A+N9gp0VNBx2mPFxIylk6Id0Fm4isoNqqWZvDC2mJJ7C gZTn0zzGhk6+zmMlFq46vibfM5Wd7NJlwmRaA/aY0XypztD41ktxrDNS06bui8Z6mDnt hAONLYnL0RYt0H103JnxNiuCoPve7sRs3H/0/z+ouFek/rYmBj3rrpwFe6A8LJfwXCgD JwoDITVtexcrwUDp4iWwIQKunSiUmwYuNTIbQscZJDGOz7O6s7qtrKM+W0lfiYQ6erw1 pm0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="BVOh6/f4"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si625573ejk.81.2019.11.12.11.55.29; Tue, 12 Nov 2019 11:55:53 -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=@redhat.com header.s=mimecast20190719 header.b="BVOh6/f4"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbfKLTwp (ORCPT + 99 others); Tue, 12 Nov 2019 14:52:45 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:51328 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726376AbfKLTwp (ORCPT ); Tue, 12 Nov 2019 14:52:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573588364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pqt6+3OL+HVkzSWOLZR1gcCq624ledyYdP7VW17VDYM=; b=BVOh6/f4uwD7SVTmkUiYsEfwSbIuyrMXkigLynVHilNjnVtzDsS1vNMP5fzCdqzqimLLat UmmKg8NoO5QjCDSB+fOnBjjJTYc6DG9i91wJUr6690lnALFgQYDImfoZaDal8NMLXhG2iP 2VVI6LlqytTHnkO5OYdoas030rYBoqI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-74-PNiFmytUMkmrHVWbu61NpA-1; Tue, 12 Nov 2019 14:52:42 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B6BF805C3D; Tue, 12 Nov 2019 19:52:39 +0000 (UTC) Received: from redhat.com (unknown [10.20.6.225]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E7A338C5; Tue, 12 Nov 2019 19:52:38 +0000 (UTC) Date: Tue, 12 Nov 2019 14:52:36 -0500 From: Jerome Glisse To: Ralph Campbell Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm/debug: __dump_page() prints an extra line Message-ID: <20191112195236.GB31272@redhat.com> References: <20191111225559.19657-1-rcampbell@nvidia.com> MIME-Version: 1.0 In-Reply-To: <20191111225559.19657-1-rcampbell@nvidia.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: PNiFmytUMkmrHVWbu61NpA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 02:55:59PM -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: >=20 > anon > flags: 0x100000000090034(uptodate|lru|active|head|swapbacked) >=20 > Fix this by using pr_cont() instead of pr_warn() to get a single line: >=20 > anon flags: 0x100000000090034(uptodate|lru|active|head|swapbacked) >=20 > Signed-off-by: Ralph Campbell Reviewed-by: J=E9r=F4me Glisse > --- >=20 > v1 -> v2: > Oops, fix the subject line. >=20 > mm/debug.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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) > =09} > =09BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) !=3D __NR_PAGEFLAGS + 1); > =20 > -=09pr_warn("flags: %#lx(%pGp)\n", page->flags, &page->flags); > +=09pr_cont("flags: %#lx(%pGp)\n", page->flags, &page->flags); > =20 > hex_only: > =09print_hex_dump(KERN_WARNING, "raw: ", DUMP_PREFIX_NONE, 32, > --=20 > 2.20.1 >=20 >=20