From: greg@kroah.com (Greg KH)
To: lm-sensors@vger.kernel.org
Subject: S3C2410 I2C driver
Date: Thu, 19 May 2005 06:25:19 +0000 [thread overview]
Message-ID: <20041015000134.GC19890@kroah.com> (raw)
In-Reply-To: <20041008130842.GK12218@home.fluff.org>
On Thu, Oct 14, 2004 at 10:54:39AM +0100, Ben Dooks wrote:
> > > +/* Debug */
> > > +
> > > +#define DBG(lev, msg...) do {\
> > > + if (lev < debug_info) \
> > > + dev_info(i2c->dev, msg); \
> > > + if (lev < debug_norm ) \
> > > + dev_dbg(i2c->dev, msg); \
> > > + } while(0)
> >
> > And if they go away, this odd DBG() macro can also go away, right?
>
> would `#define DBG(lev, msg..) do {} while(0)` be good enough, so
> that the debugging info is left if it needed to be resurrected later?
Just do what the other i2c drivers do. Have dev_dbg() be enabled if the
proper CONFIG option is set. Otherwise dev_dbg() goes away to nothing.
thanks,
greg k-h
prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 S3C2410 I2C driver Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041015000134.GC19890@kroah.com \
--to=greg@kroah.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.