From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Starikovskiy Subject: Re: [PATCH 65/73] ACPICA: Fix for extraneous debug message for packages Date: Wed, 16 Apr 2008 01:57:09 +0400 Message-ID: <480524B5.90807@suse.de> References: <1207974356-30687-1-git-send-email-lenb@kernel.org> <200804150309.25361.lenb@kernel.org> <48046902.8040900@gmail.com> <9D39833986E69849A2A8E74C1078B6B3257A97@orsmsx415.amr.corp.intel.com> <4804FA6A.2050401@suse.de> <9D39833986E69849A2A8E74C1078B6B3257BAC@orsmsx415.amr.corp.intel.com> <48051282.7050006@gmail.com> <9D39833986E69849A2A8E74C1078B6B32A4E62@orsmsx415.amr.corp.intel.com> <48051A27.6040004@suse.de> <9D39833986E69849A2A8E74C1078B6B32A4E98@orsmsx415.amr.corp.intel.com> <48052605.9000700@dbservice.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from charybdis-ext.suse.de ([195.135.221.2]:35683 "EHLO emea5-mh.id5.novell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760577AbYDOV5d (ORCPT ); Tue, 15 Apr 2008 17:57:33 -0400 In-Reply-To: <48052605.9000700@dbservice.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Tomas Carnecky Cc: "Moore, Robert" , Alexey Starikovskiy , Len Brown , linux-acpi@vger.kernel.org Tomas Carnecky wrote: > Moore, Robert wrote: >> Yes, ACPI_NATIVE_UINT has issues with printf because there is >> unfortunately no printf formatting operator other than %p that goes 32 >> bits in 32-bit mode and 64 bits in 64-bit mode. I think there may be >> cases in ACPICA where we just cast an ACPI_NATIVE_UINT to a pointer to >> use it with printf. > > What's wrong with '%l'? The kernel printf seems to support it, and the > printf manpage says: > > A following integer conversion corresponds to a long int or unsigned > long int argument. > > And since long is 32bit on 32bit platforms and 64bit on 64bit platforms, > it should work out fine. Or did I miss something? Yes. You missed the fact that long is not 64 bit on Windows 64, and ACPICA appears to care about that. Regards, Alex.