Subject: Re: daddr_t change
To: <>
From: David Laight <>
List: current-users
Date: 01/25/2003 12:18:34
On Sat, Jan 25, 2003 at 11:53:01AM +0100, Ignatios Souvatzis wrote:
> On Fri, Jan 24, 2003 at 11:16:13PM +0100, Frank van der Linden wrote:
> > I have bumped the type used for disk blocks to a 64 bit value. This is
> > in preperation for being able to address > 1T devices. This doesn't
> > change anything for the on-disk structures.
> How do we print such a beast canonically? cast to (int64_t), then %q ?

If it defined as uint64_t then "...%" PRIu64 "... "

Or cast to (uintmax_t) and use %ju
Or cast to (long long) and use %llu

%qu is a gccism, that paragraph of the man page seems misleading!

The 'fun' starts if long is 64bit and long long 128bit.


David Laight: