From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757469Ab2DXUBE (ORCPT ); Tue, 24 Apr 2012 16:01:04 -0400 Received: from mail-pz0-f51.google.com ([209.85.210.51]:32798 "EHLO mail-pz0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757293Ab2DXUBC (ORCPT ); Tue, 24 Apr 2012 16:01:02 -0400 Date: Tue, 24 Apr 2012 13:00:58 -0700 From: Greg KH To: =?iso-8859-1?Q?St=E9phane?= Pajot Cc: devel@driverdev.osuosl.org, fmhess@users.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c Message-ID: <20120424200058.GA14071@kroah.com> References: <1335286210-3150-1-git-send-email-pajot.stephane@gmail.com> <20120424184642.GA20004@kroah.com> <20120424192709.GA4717@stef-pc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120424192709.GA4717@stef-pc> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2012 at 09:27:09PM +0200, Stéphane Pajot wrote: > On Tue, Apr 24, 2012 at 11:46:42AM -0700, Greg KH wrote: > > On Tue, Apr 24, 2012 at 06:50:10PM +0200, Stéphane Pajot wrote: > > > @@ -738,7 +738,7 @@ static int labpc_attach(struct comedi_device *dev, struct comedi_devconfig *it) > > > irq = it->options[1]; > > > dma_chan = it->options[2]; > > > #else > > > - printk(KERN_ERR " this driver has not been built with ISA DMA " > > > + printk(KERN_ERR " this driver has not been built with ISA DMA\n" > > > "support.\n"); > > > > What? Why did you do this? Do you understand what you just did to the > > message printed out? > > ... It was just to patch this "quoted string split across lines > warning", i saw this solution on the web. Now i think i understand that > i cannot modify AT ALL a printk(KERN_ERR* even if it's just with a \n ? Think about what is actually happening here. You do know C, right? What is the output of the line before you made the change, and now after? thanks, greg k-h