From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Dave Airlie <airlied@gmail.com>
Cc: Greg KH <greg@kroah.com>,
Tiago Vignatti <tiago.vignatti@nokia.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Dave Airlie <airlied@redhat.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] vga: implements VGA arbitration on Linux
Date: Fri, 17 Jul 2009 10:23:09 +1000 [thread overview]
Message-ID: <1247790189.27937.74.camel@pasglop> (raw)
In-Reply-To: <21d7e9970907152054q61c9bf75x836b4b644ec22a00@mail.gmail.com>
On Thu, 2009-07-16 at 13:54 +1000, Dave Airlie wrote:
> On Wed, Jul 15, 2009 at 2:15 AM, Greg KH<greg@kroah.com> wrote:
> > Minor comment:
> >
> >> +#ifdef DEBUG
> >> + printk(KERN_DEBUG "%s\n", __func__);
> >> +#endif
> >
> > You should just use 'dev_dbg() for any debugging statments like this.
> > You can turn them on and off dynamically, and you get all of the proper
> > device information as to what is going on automatically.
> >
> > Plus, there's no need for a #ifdef in the code, which is generally
> > frowned apon in .c files.
> >
>
> We don't have a device in this case, vga arb is more of an abstraction than
> an actual device.
>
> I suppose if we were feeling crazy we could add a platform device for it.
Then use pr_debug :-)
Ben.
next prev parent reply other threads:[~2009-07-17 0:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 12:57 [PATCH 0/2] VGA arbiter implementation Tiago Vignatti
2009-07-14 12:57 ` [PATCH 1/2] vga: implements VGA arbitration on Linux Tiago Vignatti
2009-07-14 12:57 ` [PATCH 2/2] vga: drops a documentation regarding the VGA arbiter Tiago Vignatti
2009-07-18 11:48 ` Pavel Machek
2009-07-19 18:50 ` Vignatti Tiago (Nokia-D/Helsinki)
2009-07-14 14:35 ` [PATCH 1/2] vga: implements VGA arbitration on Linux Alan Cox
2009-07-15 4:43 ` Dave Airlie
2009-07-16 4:25 ` Dave Airlie
2009-07-16 8:48 ` Alan Cox
2009-07-16 10:38 ` Dave Airlie
2009-07-16 16:25 ` Jesse Barnes
2009-07-17 0:22 ` Benjamin Herrenschmidt
2009-07-17 0:20 ` Benjamin Herrenschmidt
2009-07-17 5:00 ` Dave Airlie
2009-07-17 5:12 ` Benjamin Herrenschmidt
2009-07-14 16:15 ` Greg KH
2009-07-16 3:54 ` Dave Airlie
2009-07-16 4:02 ` Greg KH
2009-07-16 4:06 ` Dave Airlie
2009-07-16 8:41 ` Alan Cox
2009-07-17 0:24 ` Benjamin Herrenschmidt
2009-07-17 0:23 ` Benjamin Herrenschmidt [this message]
2009-07-18 11:47 ` Pavel Machek
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=1247790189.27937.74.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=greg@kroah.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=tiago.vignatti@nokia.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox