[linux-dvb] Re: [PATCH] LGDT3302 Frontend Driver

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

 



Michael Krufky <mkrufky@xxxxxxx> writes:

> Johannes Stezenbach wrote:
>
>>
>>If you use vim you can add "let c_space_errors=1" in your .vimrc
>>(I'm quite sure emacs has a similar feature), then delete everything
>>which is red.


M-x whitespace-mode
M-x old-whitespace-mode


>>
>>Johannes
>>
> I've gotten a bunch of emails recommending that I change the line.
> Attached is the current patch... I will give it an hour or so to see
> if anyone else replies... If not I will commit this as-is.
>
> Thank you!
>
> -- 
> Michael Krufky
>

/* stuff deleted */

> +#define dprintk(args...) { if (debug) printk(KERN_DEBUG "lgdt3302: " args); }

Please:

#define dprintk(args...) do { if (debug) \
	printk(KERN_DEBUG "lgdt3302: " args); } while (0)


(reformat to lines as you wish, just no whitespace after '\')

do { block; } while (0)   is the de-facto way to do that, experience shows
least errors with this approach.


Tomi



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux