From 274daabae35a5f2501469257be9592d0c2e49a02 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 28 Nov 2012 15:32:45 -0500 Subject: [PATCH] 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 --- src/config/stds.h | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.39.5