Re: [PATCH 0/2] small xhci cleanups

From: Roland Dreier
Date: Thu Mar 18 2010 - 18:30:23 EST


> > I think the end user doesn't want to see anything from the driver unless
> > something serious has gone wrong. But those cases use xhci_warn(),
> > which translates down to dev_warn(), instead of xhci_dbg().
>
> Yes, that's fine. But you need/want something for when a user reports a
> problem, and they can't rebuild their kernel.

Yes, just to be clear (and I'm pretty sure I'm agreeing with Greg here)
any warnings that you want always enabled to show something in the
kernel log whenever there's a problem should be dev_warn() or
equivalent.

Things that produce too much output and that you only want on when
you're debugging a problem are probably best done via trace events.

- R.
--
Roland Dreier <rolandd@xxxxxxxxx>
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
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/