Whamcloud - gitweb
build: use long long for __u64 by default
authorAndreas Dilger <adilger@dilger.ca>
Mon, 16 Dec 2013 03:09:24 +0000 (22:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Dec 2013 03:10:09 +0000 (22:10 -0500)
commit3a941bef3b9036ca3db9d510c71bcae801ea4dd1
tree0316a15c1a7011f8c2e79009bdaa6aac4422ead0
parent66457fcb842300e757a69c49c2eb4d8e335be34c
build: use long long for __u64 by default

Don't print a verbose configure error in parse-types.h if
<asm/types.h> missing and __[SU]*_TYPEDEF is unset.  This is
always the case for non-Linux builds.

The printf formatting strings all use "%llu" for printing 64-bit
values and this it produces a large number of warnings if __u64
is defined as "unsigned long".  If __U64_TYPEDEF isn't set use
"unsigned long long" for __u64 in ext2-types.h and blkid-types.h
by default instead of using "unsigned long".

Fix a few places where "%d" or "%u" or "%Lu" were used to print a
64-bit value, by converting them to use "%lld" or "%llu" instead.

Fix a few places where "%lu" was used to print .tv_usec, by casting
the variable to "(long)" since .tv_usec is "int" on some systems.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
13 files changed:
.gitignore
config/parse-types.sh
lib/blkid/blkid_types.h.in
lib/ext2fs/ext2_types.h.in
lib/uuid/gen_uuid.c
lib/uuid/tst_uuid.c
lib/uuid/uuid_time.c
misc/findsuper.c
po/cs.po
po/es.po
po/fr.po
po/it.po
po/tr.po