Re: [PATCH v2 4/4] rtl8192u: fix printk calls in r8192U_core.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please don't drop the list from the CC.  I have added it again.

On Thu, May 23, 2013 at 01:41:14PM +0300, Xenia Ragiadakou wrote:
> Thank you for your comments. I was counting to fix the identation
> issues and other coding style issues in future patches.
> I try to make one type of change per patch so that it can be easily
> reviewed by maintainers and i think i will stick on that.
> 

I review staging patches so I am one of the people you are refering
to.  :P  The corrections I suggested were closely related to your
patch so it still falls under the one thing per patch rule.

> Also, I am not sure that i understood the reason that you gave
> for replacing pr_devel with pr_debug (i could not find pr_dbg())
> They are similar except from the fact that pr_devel does not support
> dynamic debug (and for this reason i think too that pr_debug should
> be preferred and i will change it) by looking in their definitions.
> Can you please explain me why pr_devel makes you more nervous than pr_debug?
> 

Because there is no point to pr_devel() unless you are the
maintainer and are doing it as part of a larger plan.  What you are
doing just changes the code into dead code which someone else has to
delete.

> Also for KERN_CONT, in include/linux/kernel_levels.h, it says:
> Only to be used by core/arch core during early bootup (a continued
> line is not SMP_safe
> otherwise). So is it safe to use it in this driver as you suggested?
> 

To be honest, the places where I suggested use pr_cont() in this
driver are already broken() but your change makes it even more
broken because they change "\n" to "<7> prefix:\n".  The correct
thing is to rewrite this so it prints a line at a time like this:

	"<7>prefix: my message.\n"

Instead of how you have changed it:

	"<7>prefix: my<7>prefix: message<7>prefix:\n".

Create a hello.ko module and play with this a bit to see what I
mean.

> Sorry, i am completely new in linux kernel code and my intuition
> does not help me.

No worries.  We all started as newbies.

regards,
dan carpenter
 
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux