From: Derrick Brashear Date: Wed, 28 Nov 2012 20:32:45 +0000 (-0500) Subject: config: provide inlines to make 64bit ints printable X-Git-Tag: upstream/1.8.0_pre1^2~1745 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=274daabae35a5f2501469257be9592d0c2e49a02;p=packages%2Fo%2Fopenafs.git config: provide inlines to make 64bit ints printable same idea as the 32 bit versions. make it so you can print something the compiler would otherwise stand in the way of. Change-Id: Iec9d2efe7ecb74c13406dacf854d13fe61075092 Reviewed-on: http://gerrit.openafs.org/8552 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/config/stds.h b/src/config/stds.h index 8aa2eff43..b0b826531 100644 --- a/src/config/stds.h +++ b/src/config/stds.h @@ -286,6 +286,10 @@ hdr_static_inline(long) afs_printable_int32_ld(afs_int32 d) { return (long) d; } hdr_static_inline(unsigned long) afs_printable_uint32_lu(afs_uint32 d) { return (unsigned long) d; } +hdr_static_inline(long long) afs_printable_int64_ld(afs_int64 d) { return (long long) d; } + +hdr_static_inline(unsigned long long) afs_printable_uint64_lu(afs_uint64 d) { return (unsigned long long) d; } + #ifdef AFS_64BITUSERPOINTER_ENV #define afs_pointer_to_int(p) ((afs_uint32) (afs_uint64) (p)) #define afs_int_to_pointer(i) ((void *) (afs_uint64) (i))