Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1354188pxa; Thu, 20 Aug 2020 09:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr3yCwfzKfTiyLaXHemKNHMCFLiH77KS3Ox5PeFffinxzvtS/5Y+/OHhEa+4U/MmBRuKQl X-Received: by 2002:a17:906:ecf9:: with SMTP id qt25mr4074377ejb.478.1597939667070; Thu, 20 Aug 2020 09:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597939667; cv=none; d=google.com; s=arc-20160816; b=wHTohX47kG43ZLhXKGGU7GJYY3FSjwH4zXaefh2MHXLk59inu2TC6qjleLxyTOkpnP cT9CGI3tSy8oroobxO3Ms35p2Mo3sjXp8LXD3mafsyzY7EAYpqJiY9ZH441A0Io8olIK IQjhaq2FMOrJFEVPctCTt3GYaFLgQa1mEkLPhRDFoiF9OV5u19JwS1yLeQnEfsvBz8eg p7v0oZfE6EO2hg+4VD89YCWPJkQyEB2Oh3Imm2nmNKg4h7Az5Gs/0r3j/8MNh6h/6bHL VUUZ9uttYPd6J0inzkj/iHE/WgyCtIyuFH3xt6A0CCCjs0VgWxlQTkhrfMyPDOaot4kn VNBA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=/gP5kx3mndoj9cFh6HRVtGMrk/avhfUYY6/VI1/+ApQ=; b=CMEPM5T9s5PbRF87qWSUr36+zf+hOV7FJHWCZBslCA6+O0+jkB7IhlVczenPr8Hr4i 9ShnDD4GVEIQ4I46ymr6FiP3tjyn6UU8O+viqNsLEXe0fpsbCJIP5tS8cVPoXseBNyLm RYhD1V6vm/+VSL/JNF/cfSDSbhknJzYEhH7e4S0XAO6pbemUQi25ZK8QN1nSebLPtbuT nO7e+28me1QWpwaw6lnsRcH53FBsF0xyGnbzsCX8mWhi9u5foP7MF08WzZO1UwiygH2j H5PA5nwqeDsLemxNCXFNOixddDgc0i3bjNUpK5mi/aAIHzwhj0z2wX04WC6QcZcJJDDt L6vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si1673375ejg.69.2020.08.20.09.07.22; Thu, 20 Aug 2020 09:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729788AbgHTQD3 (ORCPT + 99 others); Thu, 20 Aug 2020 12:03:29 -0400 Received: from smtprelay0150.hostedemail.com ([216.40.44.150]:59558 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726387AbgHTQD1 (ORCPT ); Thu, 20 Aug 2020 12:03:27 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 9CFA4100E7B61; Thu, 20 Aug 2020 16:03:25 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3874:3876:4321:5007:6120:7576:10004:10400:10848:11026:11232:11658:11914:12043:12296:12297:12663:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21433:21627:21939:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: cough98_310225427031 X-Filterd-Recvd-Size: 2202 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Thu, 20 Aug 2020 16:03:23 +0000 (UTC) Message-ID: <7ef3bf5553285840fcf082d0a616ca1e3edd0cd3.camel@perches.com> Subject: Re: [RFC PATCH 1/5] printk: implement pr_cont_t From: Joe Perches To: David Laight , John Ogness , Linus Torvalds Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Thomas Gleixner , Sergey Senozhatsky , "linux-kernel@vger.kernel.org" Date: Thu, 20 Aug 2020 09:03:21 -0700 In-Reply-To: References: <20200819232632.13418-1-john.ogness@linutronix.de> <20200819232632.13418-2-john.ogness@linutronix.de> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-08-20 at 07:44 +0000, David Laight wrote: > From: Joe Perches > > Sent: 20 August 2020 01:34 > > > > On Thu, 2020-08-20 at 01:32 +0206, John Ogness wrote: > > > Implement a new buffering mechanism for pr_cont messages. > > > > > > Old mechanism syntax: > > > > > > printk(KERN_INFO "text"); > > > printk(KERN_CONT " continued"); > > > printk(KERN_CONT "\n"); > > > > > > New mechanism syntax: > > > > > > pr_cont_t c; > > > > > > pr_cont_begin(&c, KERN_INFO "text"); > > > > bikeshed: > > > > I suggest: > > > > printk_begin(&printk_context, fmt, ...) > > printk_continue(&printk_context, fmt, ...) (maybe printk_next()) > > printk_end(&printk_context, fmt, ...) > > I see some very long source lines looming ... Macros make that pretty short. pr__start pr_next pr_end Doesn't seem too bad.