Subject: Re: daddr_t change
To: Martin Husemann <martin@duskware.de>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: current-users
Date: 01/25/2003 09:03:19
On Sat, Jan 25, 2003 at 12:51:38PM +0100, Martin Husemann wrote:
> > How do we print such a beast canonically? cast to (int64_t), then %q ?
>
> The current practice for similar types is casting to (long long) and using
> "%lld" or "%llu".
>
> IIRC %q is not standard.
>
> In this context I think the cast is not necessary, since it's explicitly a 64
> bit type anyway, right?
Use <inttypes.h> and PRIx64 or the like.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>