Re: [pchecks v2 2/2] percpu: Add preemption checks to __this_cpu ops
From: Ingo Molnar
Date: Fri Oct 04 2013 - 04:37:55 EST
* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> > @@ -39,8 +39,8 @@ notrace unsigned int debug_smp_processor
> > if (!printk_ratelimit())
> > goto out_enable;
> >
> > - printk(KERN_ERR "BUG: using smp_processor_id() in preemptible [%08x] "
> > - "code: %s/%d\n",
> > + printk(KERN_ERR "%s in preemptible [%08x] "
> > + "code: %s/%d\n", what,
> > preempt_count() - 1, current->comm, current->pid);
>
> I would argue for keeping the "BUG" string intact and in front of the
> %s.
Definitely.
Thanks,
Ingo
--
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/