Re: [PATCH] Coding style in serial2002

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

 



On Thu, Jan 20, 2011 at 06:50:02PM +1100, ahern.michael.t@xxxxxxxxx wrote:
> From: Michael Ahern <ahern.michael.t@xxxxxxxxx>
> 
> This patch resolves braces and KERN_ warnings by checkpatch.pl
> Warnings: printk() should include KERN_ facility level, removed unnecessary braces, lines over 80 chars

break the commit log in 72 chars

> @@ -246,7 +246,12 @@ static void tty_setspeed(struct file *f, int speed)
>  		struct termios settings;
>  
>  		tty_ioctl(f, TCGETS, (unsigned long)&settings);
> -/* printk("Speed: %d\n", settings.c_cflag & (CBAUD | CBAUDEX)); */
> +
> +		/* printk("Speed: %d\n", settings.c_cflag & (CBAUD | CBAUDEX));
> +		 * better
> +		 * pr_info("Speed: %d\n", settings.c_cflag & (CBAUD | CBAUDEX));
> +		 */

since you're fixing coding style, you might as well use the correct
multi-line comment style:

/*
 * printk(....
 * better
 * pr_info(....
 */

-- 
balbi
_______________________________________________
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