Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11195836rwb; Fri, 25 Nov 2022 12:18:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf70E1lnQzh5LjS6im451LrxxrayvpGrdvKnBfH9NEWFMOgP3wU/TOV52W3691v1vHItfEQG X-Received: by 2002:a17:90a:b011:b0:20a:97e2:5373 with SMTP id x17-20020a17090ab01100b0020a97e25373mr41486049pjq.200.1669407497312; Fri, 25 Nov 2022 12:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669407497; cv=none; d=google.com; s=arc-20160816; b=amk5HoZvN/Dr6vblKid7f/4BMFLPV+YgUfSMqSdyiUgpudsuknlzPvoEb6rLRMhNCU 27d5tdK58AlL1P0r5wu+Egq9ifIZn+cxf2m3lkHbmtvC4tY07PnoIY7bF6PXc1YOogQ+ AQ2JJ5zQut5zB28jbalVtncpBhohDqMEZronLc3u2BxKdsqRGpeGRJqVc+IFD9v/Gm3+ 7XQm6OFpUjEAAR8+KhV5ktIF7LFcuft8FkEiTwgLEeKQzbZc3toN3kzCHdSli/bcAFoi S7ukLR5OBkDAYKIWWqOitWEcncUGefQPjdtZmJgMm9A4Kcix+hnvg7HWv2R/eDHWp8iS rxkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=VPoU3aYxmKZyQgt4X6VQsTQcn+IMk6tvqZh5xbq6GIY=; b=zHzqv3bkuedab0XhcjmbEAYgFQMbF6aH+rgdvB/5U8wR3EDB+eWj5+hoFsVj9qN56Q RcfZRkE7vb1uG3snG3LCxqhmDoT9ap1O6jZ5IBuF6t5AYJ4tkDEuUXm36f6daRIGBt/3 gW7Qmgy5GMgzF9Pv+CAtQN8R2xllZke/j9tiVIW4EGWTCLBk+e5JUcr/r7ylGKAi+LnI 2y+YypnOxbXm4NKTFga0tsAsZnAGsRtXR44YCohXjRbVKY93btN/uVLJck+SjsOXV/43 CrRJx4NgRoxp1xSHobwY6Ig4BbelV/gn9kIFKN1K20r54StKiFNl6ozw1MBJnlaCxxfI 11bw== ARC-Authentication-Results: i=1; mx.google.com; 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 bh3-20020a170902a98300b001897390a9fdsi216165plb.541.2022.11.25.12.17.58; Fri, 25 Nov 2022 12:18:17 -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; 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 S229789AbiKYTyA convert rfc822-to-8bit (ORCPT + 85 others); Fri, 25 Nov 2022 14:54:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiKYTx7 (ORCPT ); Fri, 25 Nov 2022 14:53:59 -0500 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0398B45A03 for ; Fri, 25 Nov 2022 11:53:57 -0800 (PST) Received: from omf01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 060BDC0A50; Fri, 25 Nov 2022 19:53:55 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA id DE61F60013; Fri, 25 Nov 2022 19:53:52 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 3/3] power: process: use explicit levels for printk continuations From: Joe Perches To: Thomas =?ISO-8859-1?Q?Wei=DFschuh?= , "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Andy Whitcroft Cc: linux-kernel@vger.kernel.org, Steven Rostedt , Dwaipayan Ray , Lukas Bulwahn Date: Fri, 25 Nov 2022 11:53:49 -0800 In-Reply-To: <20221125190948.2062-4-linux@weissschuh.net> References: <20221125190948.2062-1-linux@weissschuh.net> <20221125190948.2062-4-linux@weissschuh.net> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Stat-Signature: f8ui8jy95g9mn1bsc6oyscfzb5tx637o X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: DE61F60013 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18HCohEpzJ2JMwVne5Qiy/X+ULGtNKt0DI= X-HE-Tag: 1669406032-894572 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 On Fri, 2022-11-25 at 20:09 +0100, Thomas Wei?schuh wrote: > Many of the printk messages emitted during suspend and resume are > emitted in fragments using pr_cont()/KERN_CONT. > > As during suspend and resume a lot of operations are happing in the > kernel the chances are high that the fragments are interspersed with > unrelated messages. > > In this case if no explicit level is specified for the fragments the > standard level is applied, which by default is KERN_WARNING. > > If the user is only observing KERN_WARNING and *not* KERN_INFO messages > they will see incomplete message fragments. > > By specifing the correct printk level also with the continuations this > mismatch can be avoided. > Also it reduces the amount of false-positive KERN_WARNING messages. > > Signed-off-by: Thomas Wei?schuh > --- > kernel/power/process.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/kernel/power/process.c b/kernel/power/process.c [] > @@ -82,7 +82,7 @@ static int try_to_freeze_tasks(bool user_only) > elapsed_msecs = ktime_to_ms(elapsed); > > if (todo) { > - pr_cont("\n"); > + pr_info_cont("\n"); I think this isn't needed because of the immediately following pr_err. > pr_err("Freezing of tasks %s after %d.%03d seconds " > "(%d tasks refusing to freeze, wq_busy=%d):\n", > wakeup ? "aborted" : "failed",