On Fri, Oct 07, 2011 at 10:22:43AM +0100, Russell King - ARM Linux wrote: > On Fri, Oct 07, 2011 at 10:50:16AM +0200, Víctor Manuel Jáquez Leal wrote: > > Convert a printk(KERN_ERR) message in the driver to pr_err(). > ... > > @@ -111,7 +111,7 @@ static void omap_dm_timer_wait_for_reset(struct > > omap_dm_timer *timer) > > while (!(__raw_readl(timer->sys_stat) & 1)) { > > c++; > > if (c > 100000) { > > - printk(KERN_ERR "Timer failed to reset\n"); > > + pr_err("Timer failed to reset\n"); > > What is the reason behind this change? It looks like it's to use the > latest and greatest function. > > If so, please don't make these changes - we have on many occasions been > blamed for size of diffstat, churn, needless change, and this patch is > exactly that. > > By all means fix printk's without KERN_ constants, possibly converting > them to pr_*, but don't go around replacing printk(KERN_* with pr_*( > without ensuring that there's a real benefit to the change. >
Thanks a lot Russell, and sorry for the noise. I'm still learning how to collaborate in the kernel. vmjl -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html