Re: [PATCH] Coding style in serial2002

From: Felipe Balbi
Date: Thu Jan 20 2011 - 02:53:50 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/