From patchwork Tue Oct 19 14:26:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matthew Wilcox (Oracle)" X-Patchwork-Id: 12570069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 460CAC433EF for ; Tue, 19 Oct 2021 14:28:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0BA2160FC1 for ; Tue, 19 Oct 2021 14:28:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0BA2160FC1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 90BC26B006C; Tue, 19 Oct 2021 10:28:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8BA806B0071; Tue, 19 Oct 2021 10:28:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7A8DF900002; Tue, 19 Oct 2021 10:28:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0126.hostedemail.com [216.40.44.126]) by kanga.kvack.org (Postfix) with ESMTP id 6E6EF6B006C for ; Tue, 19 Oct 2021 10:28:58 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 314FE8249980 for ; Tue, 19 Oct 2021 14:28:58 +0000 (UTC) X-FDA: 78713418756.21.893FF93 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf11.hostedemail.com (Postfix) with ESMTP id CC13EF0000BE for ; Tue, 19 Oct 2021 14:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=sPIZQUdRZqQKXPJkC3iAC51yqQPE6RGqrzBTEFzMHfg=; b=bmB1WkmiwweAHYF3+ZUnMoWZJK 4jkiMmbwgIUpdK3YseA1W34TihQnWimKwErZOO8DGGZwCdPAn7Wqtd7mqfzORrwwlxt9Xz30lO9XL HR1e9vf4k9yKks2GQMj1h58JYW/YxEM83CAITQ3c+pmxd14SdkCjebISUPFkvVLJwqdWrTAvThsjj HP38LM9uLvZn0bpOuJ8aceqA3I9kTshbA+KoPs6EcZLfwzQIv4jPDBoTGGM4SeW5ykjlVQaJj8Xwh nDFjukYRKJXOxUaZ4vwyOSGoThzwzqcrqMyUHLNoUjEEyMbrI3REobZcmLqaaufmyN1z/fjrbv35f HNZRKF+Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcq4O-00Bn21-53; Tue, 19 Oct 2021 14:26:37 +0000 From: "Matthew Wilcox (Oracle)" To: Yafang Shao Cc: "Matthew Wilcox (Oracle)" , Sergey Senozhatsky , Petr Mladek , linux-mm@kvack.org, Vlastimil Babka , Rasmus Villemoes Subject: [PATCH v2 0/5] Improvements to %pGp Date: Tue, 19 Oct 2021 15:26:16 +0100 Message-Id: <20211019142621.2810043-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Stat-Signature: wsozc8976shkcon95dkbdibpoe948n8x Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=bmB1Wkmi; spf=none (imf11.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: CC13EF0000BE X-HE-Tag: 1634653736-174685 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The first four patches are improvements to page_flags_test(). The fifth is the patch I originally sent out which exposed some of the weaknesses in page_flags_test(). v2: - use scnprintf (Rasmus) - remove page_flags variable (Kirill) Matthew Wilcox (Oracle) (5): test_printf: Make pft array const test_printf: Remove separate page_flags variable test_printf: Remove custom appending of '|' test_printf: Append strings more efficiently vsprintf: Make %pGp print the hex value lib/test_printf.c | 61 +++++++++++++++++++-------------------------- lib/vsprintf.c | 8 ++++++ mm/debug.c | 2 +- mm/memory-failure.c | 8 +++--- mm/page_owner.c | 4 +-- mm/slub.c | 4 +-- 6 files changed, 42 insertions(+), 45 deletions(-)