* Re: [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c [not found] <1335286210-3150-1-git-send-email-pajot.stephane@gmail.com> @ 2012-04-24 18:46 ` Greg KH 2012-04-24 19:27 ` Stéphane Pajot 0 siblings, 1 reply; 4+ messages in thread From: Greg KH @ 2012-04-24 18:46 UTC (permalink / raw) To: Stéphane Pajot; +Cc: rdunlap, fmhess, devel, linux-kernel On Tue, Apr 24, 2012 at 06:50:10PM +0200, Stéphane Pajot wrote: > This is a patch to the ni_labpc.c file that fixes up trailing whitespace error and quoted string split across lines warning > found by the checkpatch.pl tool Please only fix one type of thing per patch, so this should be a two patch series at the least. But... > @@ -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? greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c 2012-04-24 18:46 ` [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c Greg KH @ 2012-04-24 19:27 ` Stéphane Pajot 2012-04-24 20:00 ` Greg KH 2012-04-24 20:03 ` Dan Carpenter 0 siblings, 2 replies; 4+ messages in thread From: Stéphane Pajot @ 2012-04-24 19:27 UTC (permalink / raw) To: Greg KH; +Cc: rdunlap, fmhess, devel, linux-kernel 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: > > This is a patch to the ni_labpc.c file that fixes up trailing whitespace error and quoted string split across lines warning > > found by the checkpatch.pl tool > > Please only fix one type of thing per patch, so this should be a two > patch series at the least. Ok for that. > > But... > > > @@ -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 ? Stef > > greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c 2012-04-24 19:27 ` Stéphane Pajot @ 2012-04-24 20:00 ` Greg KH 2012-04-24 20:03 ` Dan Carpenter 1 sibling, 0 replies; 4+ messages in thread From: Greg KH @ 2012-04-24 20:00 UTC (permalink / raw) To: Stéphane Pajot; +Cc: devel, fmhess, linux-kernel 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c 2012-04-24 19:27 ` Stéphane Pajot 2012-04-24 20:00 ` Greg KH @ 2012-04-24 20:03 ` Dan Carpenter 1 sibling, 0 replies; 4+ messages in thread From: Dan Carpenter @ 2012-04-24 20:03 UTC (permalink / raw) To: Stéphane Pajot; +Cc: Greg KH, devel, fmhess, linux-kernel Hehe. :P Stéphane you seem like a nice person but you're a bit of a beginner to be working on the kernel... Come back in couple years after you have done a little bit more C programming and you know the answer to that question. We'll still be around waiting for you. :) There is no rush. regards, dan carpenter ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-24 20:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1335286210-3150-1-git-send-email-pajot.stephane@gmail.com>
2012-04-24 18:46 ` [PATCH] Staging: comedi: fix trailing whitespace and quoted string split across lines in ni_labpc.c Greg KH
2012-04-24 19:27 ` Stéphane Pajot
2012-04-24 20:00 ` Greg KH
2012-04-24 20:03 ` Dan Carpenter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox