Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11124928rwb; Fri, 25 Nov 2022 11:21:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ahBq06c2tfJvQLmll64KzaRTH6XfAD7z4YoBWR2yscoHYD06j0Zxepr0ZQeH9URb8113o X-Received: by 2002:a17:90a:a082:b0:218:a7c3:e760 with SMTP id r2-20020a17090aa08200b00218a7c3e760mr28271621pjp.127.1669404069282; Fri, 25 Nov 2022 11:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669404069; cv=none; d=google.com; s=arc-20160816; b=uWgrqnifdT0eK9M50BRiVZPtGr4Q6/wS+KvD+twkYwT3Vf/dJQu4HbluxTvse/dgMv 8ZwqTyhwJOVkAypqwnyulYcVA1GUIVGxiWg489LQSpvEcHy9R5wtoHDTuw/CO8c0cgdg Jth1Gnt8AoyEDJSPTQwrmQfGKFe/FJC4biIZ0FnzzF3KKl/jtV0QZn1n9VTB+tvprvw8 fr+sVWG1D0YrE1+DjpaB7KpJZxSKsxND2uIHrHk42l9pz8UYZySXoZW+J/e2ptIw1Dvw i3Jb+F8tsNbQ/ZP6pW5hzf7uWzLtd0WGVgpgNyZQmgJLBA42R7kdFsil1u6goOGcFebo NcTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=9YCiGFFwuQdkFIwvrfU8ECcPflTeT80lQSd8asH4bcg=; b=lxTGvhIcE8dm1JrYdq9qEq6KwMrvbmb4ZAZ2sETtKLBVsfDrVp55uDoiizwBz2qKWw 2tUuaDbaAfy/zXpUqAw8MN3X83uP5xfC4DNfOd/8B6cCWRUb92A17dJywuvskKsdndPO 7ulo5VRlKrz4A8xb/dfn6d5Wc2n28M9BwHovTDhyEr7KwTGWhSMO0h86M7HNro1Gz2Nl EYWcaopK8tcunU+4l9AnsqX6SOUSk0v2HkOrGMUAhrKCAI5P8b3f+7R1mJGi9+wl9byY ARJFoRAoBQTm4xZLMIVw6Lg6cE2CVzYhheiOs3/nvntrPJRp2T3hMyr6qx4a7mZ0KlHW B09Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b="Bq/Y7NRt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k67-20020a632446000000b004532834e821si4447556pgk.598.2022.11.25.11.20.55; Fri, 25 Nov 2022 11:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b="Bq/Y7NRt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbiKYTKZ (ORCPT + 85 others); Fri, 25 Nov 2022 14:10:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbiKYTKP (ORCPT ); Fri, 25 Nov 2022 14:10:15 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C95D55C9D; Fri, 25 Nov 2022 11:10:12 -0800 (PST) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1669403409; bh=g/SxQQpcICtujmdjN+34deYm/7mbOuynAwNDgxwnZRI=; h=From:To:Cc:Subject:Date:From; b=Bq/Y7NRturTvjRkhWN5xLm7MCA+plFgO7mBnfnJEPJqytptvWZS4NpKEGtEeb8L5+ r8xCRXvbU6Nu5ZWOlx2tS47vqY8egIroPDXME/m8Z/T7PXtN6kBpN9+IKnrZYZTIeA Z/7P3wObBzTderaOTTi5RUATuLPaFHAXUaY1AOmA= To: "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Andy Whitcroft , Joe Perches Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Steven Rostedt , Dwaipayan Ray , Lukas Bulwahn Subject: [PATCH v2 0/3] printk: introduce new macros pr__cont() Date: Fri, 25 Nov 2022 20:09:45 +0100 Message-Id: <20221125190948.2062-1-linux@weissschuh.net> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1669403373; l=1346; i=linux@weissschuh.net; s=20211113; h=from:subject; bh=g/SxQQpcICtujmdjN+34deYm/7mbOuynAwNDgxwnZRI=; b=cJBM5DFWiGF9QnAVkNtozi6pqByCpuEASnEYQnyrCxmVjHyA1kV5rp0QeDjmRHHqmQ3N1OgkRmMt ipaSdfSSCfm0BDAhn8ROkPjNvwylA/wZdinAiayUOOKci5E9L3nQ X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=9LP6KM4vD/8CwHW7nouRBhWLyQLcK1MkP6aTZbzUlj4= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds new printk wrapper macros pr__cont(). These create continuation messages with an explicit level. Explicit levels are useful when a continuation message is split from its main message. Without the explicit level KERN_DEFAULT ("warn" by default) is used which can lead to stray partial log messages when filtering by level. Also checkpatch is modified to recommend the new macros over plain pr_cont(). Lastly the new macros are used in kernel/power/process.c as this file uses continuation messages during system suspend-resume which creates a high likelyhood of interspersed messages. Changelog: This was original a single patch but was expanded into a series. v1: https://lore.kernel.org/lkml/20221121050946.3540-1-linux@weissschuh.net/ v1 -> v2: * Introduce new pr__cont() macros in printk.h * Add checkpatch.pl validation Thomas Weißschuh (3): printk: introduce new macros pr__cont() checkpatch: handle new pr__cont macros power: process: use explicit levels for printk continuations include/linux/printk.h | 23 +++++++++++++++++++++++ kernel/power/process.c | 18 +++++++++--------- scripts/checkpatch.pl | 10 ++++++++-- 3 files changed, 40 insertions(+), 11 deletions(-) base-commit: 0b1dcc2cf55ae6523c6fbd0d741b3ac28c9f4536 -- 2.38.1