[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200804280925.56771.bjorn.helgaas@hp.com>
Date: Mon, 28 Apr 2008 09:25:56 -0600
From: Bjorn Helgaas <bjorn.helgaas@...com>
To: Rene Herman <rene.herman@...access.nl>
Cc: Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, Adam Belay <ambx1@....rr.com>,
Adam M Belay <abelay@....edu>,
Li Shaohua <shaohua.li@...el.com>,
Matthieu Castet <castet.matthieu@...e.fr>,
Thomas Renninger <trenn@...e.de>,
Jaroslav Kysela <perex@...ex.cz>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [patch 21/54] PNP: add debug when assigning PNP resources
On Saturday 26 April 2008 03:26:20 pm Rene Herman wrote:
> On 25-04-08 20:38, Bjorn Helgaas wrote:
> > +#else
> > +void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc)
> > +{
> > +}
> > +#endif
>
> Not too important, but #ifdef could be inside body.
Much nicer, thanks.
I'll add your updates and acks and repost this series today.
> > + dev_dbg(&dev->dev, " io %d already set to 0x%llx-0x%llx "
> > + "flags 0x%x\n", idx, (unsigned long long) *start,
> > + (unsigned long long) *end, (int) *flags);
>
> I wanted to ask/comment why you're casting the flags to int though. It's an
> unsigned long, both in the resource and by type here. Ie, 0x%lx and no
> casting? (I btw also like %#lx better then the explicit 0x, but that doesn't
> really matter).
Two more good ideas. The cast was just me not paying attention, and
the "0x%x" habit is deeply ingrained. I'll change both.
Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists