[PATCH] rxrpc: Fix smp_processor_id() usage

Pete Zaitcev zaitcev at redhat.com
Wed Apr 2 15:26:36 EDT 2008


On Wed,  2 Apr 2008 21:11:36 +0200, Sven Schnelle <svens at stackframe.org> wrote:

> +#define dbgprintk(FMT,...) do {\
> +	preempt_disable(); \
> +	printk("[%x%-6.6s] "FMT"\n", smp_processor_id(), current->comm ,##__VA_ARGS__); \
> +	preempt_enable(); \
> +} while(0)

Hmm, this seems to be a bit exessive. Why do we even need
the CPU ID in printouts?

-- Pete



More information about the linux-afs mailing list