From: Keir Fraser Subject: Re: sched_sedf printf formatting warnings Date: Tue, 10 May 2005 23:15:19 +0100 Message-ID: <460f1778cb10324b106e396fc02748cd@cl.cam.ac.uk> References: <427FD9A2.4070106@us.ibm.com> <4281325D.2060804@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4281325D.2060804@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stephan Diestelhorst Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 10 May 2005, at 23:14, Stephan Diestelhorst wrote: > Odd, are you compiling on x86-64 hardware? If so then s_time_t will be > just a normal long. > So how to print a 64-bit integer? Because always casting to (long long) > would be quite tedious. And different printfs for each architecture are > not nice too. > > The printfs in schedule.c simply workaround that by decomposing the > value into two 32-bit values ant prinitng it out hex. But I find time > in > decimal notation much more convenient... > > Any ideas? It's fixed already. You use PRIu64 from inttypes.h. -- Keir