From: H H. S. <har...@vi...> - 2009-06-23 18:20:19
|
On Tuesday, June 23, 2009 10:30 AM, Ville Syrjälä wrote: > On Tue, Jun 23, 2009 at 12:52:58PM -0400, H Hartley Sweeten wrote: > On Saturday, June 20, 2009 2:30 PM, Ville Syrjala wrote: > > > Fix a bunch of coding style problems in atyfb_base.c. > > > > > > Signed-off-by: Ville Syrjala <sy...@sc...> > > > --- > > > There are still some problems left, at least over 80 char lines, but > > > fixing those in a decent manner would require some code restructuring > > > to reduce the overly deep nesting. I decided to leave those bits mostly > > > untouched for now. > > > > > > drivers/video/aty/atyfb_base.c | 829 ++++++++++++++++++++++------------------ > > > 1 files changed, 458 insertions(+), 371 deletions(-) > > > > > > diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c > > > index 63d3739..913b4a4 100644 > > > --- a/drivers/video/aty/atyfb_base.c > > > +++ b/drivers/video/aty/atyfb_base.c > > > @@ -132,7 +132,7 @@ > > > #endif > > > > > > #define PRINTKI(fmt, args...) printk(KERN_INFO "atyfb: " fmt, ## args) > > > -#define PRINTKE(fmt, args...) printk(KERN_ERR "atyfb: " fmt, ## args) > > > +#define PRINTKE(fmt, args...) printk(KERN_ERR "atyfb: " fmt, ## args) > > > > Why not: > > > > #define pr_fmt(fmt) "atyfb: " fmt > > > > Then just use pr_info() and pr_err()? Also, pr_devel() could be used instead > > of the private DPRINTK() definition. > > Ideally it should use dev_info(), dev_err() and dev_dbg() but at the > moment I have no motivation to start cleaning up the printk mess in > this driver. Agree, the dev_* output would be better. I just happened to look over the patch and noticed the private printk usage. Regards, Hartley |