From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbdIALNo (ORCPT ); Fri, 1 Sep 2017 07:13:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:53814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751811AbdIALNn (ORCPT ); Fri, 1 Sep 2017 07:13:43 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AEEF21AC7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 1 Sep 2017 07:13:40 -0400 From: Steven Rostedt To: Pavel Machek Cc: Sergey Senozhatsky , Linus Torvalds , Sergey Senozhatsky , Petr Mladek , Jan Kara , Andrew Morton , Jiri Slaby , Andreas Mohr , Tetsuo Handa , Linux Kernel Mailing List Subject: Re: printk: what is going on with additional newlines? Message-ID: <20170901071340.19bd3f3e@gandalf.local.home> In-Reply-To: <20170901072906.GB12104@amd> References: <20170815025625.1977-1-sergey.senozhatsky@gmail.com> <20170828090521.GA25025@amd> <20170829202447.GA20829@amd> <20170901014012.GA814@jagdpanzerIV.localdomain> <20170901072906.GB12104@amd> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Sep 2017 09:29:06 +0200 Pavel Machek wrote: > Well, usually dev_info (and friends) is right thing to use for > production. But very little debugging remains after the > .. well.. debugging phase, so something that behaves similar to > printf() is nice. Try using trace_printk(). Who uses printk() to debug anymore ;-) > > Actually, I believe we should just create printf() in kernel. Its the > mistake I do all the time. It's a way to tell you how much user vs kernel programming you do. When you type printk() in user space, you know you've been doing more kernel programming. When you type printf() in kernel space, you've been doing more user space programming. -- Steve