From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 29A32B8B for ; Tue, 20 Jun 2017 15:27:48 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 59774183 for ; Tue, 20 Jun 2017 15:27:47 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id y7so23882757pfd.3 for ; Tue, 20 Jun 2017 08:27:47 -0700 (PDT) Date: Wed, 21 Jun 2017 00:26:32 +0900 From: Sergey Senozhatsky To: Steven Rostedt Message-ID: <20170620152632.GA409@tigerII.localdomain> References: <20170619052146.GA2889@jagdpanzerIV.localdomain> <20170619234650.GC30361@cloud> <20170620103652.7719b715@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170620103652.7719b715@gandalf.local.home> Cc: ksummit Subject: Re: [Ksummit-discuss] [TECH TOPIC] printk redesign List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On (06/20/17 10:36), Steven Rostedt wrote: > On Tue, 20 Jun 2017 10:24:43 +0200 > Arnd Bergmann wrote: > > > > > It'd be nice if, when building a kernel with CONFIG_PRINTK disabled, the > > > full format-string handling wasn't compiled in to handle snprintf and > > > family. In particular, some of the kernel-specific %p format-string > > > modifiers only get used when printing to a user, never when formatting a > > > string for machine consumption. I can think of a few different ways to > > > address that, but I'd love to see that taken into account in the > > > requirements for a printk redesign. > > > > I don't think that's realistic, given how many special formats we have > > nowadays, see the discussion about the 'struct rtc_time' format recently, > > which was definitely meant for external ABIs. > > I think it may be possible, but it is a separate project from the > printk one. One thing, tracing requires it, and does not require > printk. What you could do is have CONFIG_VSPRINTF and have anything that > uses it select it as well. Which would be printk, tracing, etc. > > But the printk mess in general is a big enough issue to try to solve > than to bring this up at this time. agree. that's a bit minor at the moment. -ss