From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935348AbYD1P04 (ORCPT ); Mon, 28 Apr 2008 11:26:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933406AbYD1P0q (ORCPT ); Mon, 28 Apr 2008 11:26:46 -0400 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:30702 "EHLO g5t0006.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933261AbYD1P0p (ORCPT ); Mon, 28 Apr 2008 11:26:45 -0400 From: Bjorn Helgaas To: Rene Herman Subject: Re: [patch 21/54] PNP: add debug when assigning PNP resources Date: Mon, 28 Apr 2008 09:25:56 -0600 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Belay , Adam M Belay , Li Shaohua , Matthieu Castet , Thomas Renninger , Jaroslav Kysela , Andrew Morton References: <20080425183807.366134771@ldl.fc.hp.com> <20080425183928.375529075@ldl.fc.hp.com> <48139DFC.500@keyaccess.nl> In-Reply-To: <48139DFC.500@keyaccess.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804280925.56771.bjorn.helgaas@hp.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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