Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737Ab0AUPze (ORCPT ); Thu, 21 Jan 2010 10:55:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752565Ab0AUPzd (ORCPT ); Thu, 21 Jan 2010 10:55:33 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:43109 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752323Ab0AUPzc (ORCPT ); Thu, 21 Jan 2010 10:55:32 -0500 Date: Thu, 21 Jan 2010 07:54:39 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Yinghai Lu cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Jesse Barnes , Christoph Lameter , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 05/36] x86/pci: enable pci root res read out for 32bit too In-Reply-To: <1264055303-15123-6-git-send-email-yinghai@kernel.org> Message-ID: References: <1264055303-15123-1-git-send-email-yinghai@kernel.org> <1264055303-15123-6-git-send-email-yinghai@kernel.org> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 894 Lines: 26 On Wed, 20 Jan 2010, Yinghai Lu wrote: > > printk(KERN_DEBUG "bus: %02x index %x %s: [%llx, %llx]\n", > busnum, j, > (res->flags & IORESOURCE_IO)?"io port":"mmio", > - res->start, res->end); > + (u64)res->start, (u64)res->end); When fixing these kinds of things, please just make it use '%pR' instead. A simple printk(KERN_DEBUG "bus: %02x index %x %pR\n", busnum, j, res); should do the right thing, printing the resource with nice human-readable flags. Including things like 64-bit/prefetching information for memory resources etc that the current manual resource printout doesn't do. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/