From: Jeffrey Altman Date: Fri, 15 May 2009 13:30:18 +0000 (+0000) Subject: DEVEL15-printf-format-macros-20090515 X-Git-Tag: openafs-devel-1_5_60~51 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bec8721b20c94579b13c7bbf37dcbc833f885f6a;p=packages%2Fo%2Fopenafs.git DEVEL15-printf-format-macros-20090515 LICENSE IPL10 FIXES 124776 The Windows format macro for AFS_INT64_FMT was wrong. It is "I64" not "l64". Also added macros for AFS_SIZET_FMT. Although not currently in use. size_t varies in size on Windows just like pointers. (cherry picked from commit b41d124409589e2890dea60963db4dc158f4d19c) --- diff --git a/src/config/stds.h b/src/config/stds.h index bdee57305..2023fa70c 100644 --- a/src/config/stds.h +++ b/src/config/stds.h @@ -280,11 +280,13 @@ typedef struct afsUUID afsUUID; * windows use a different format string */ #ifdef AFS_NT40_ENV -#define AFS_INT64_FMT "l64d" -#define AFS_PTR_FMT "p" +#define AFS_INT64_FMT "I64d" +#define AFS_PTR_FMT "Ip" +#define AFS_SIZET_FMT "Iu" #else #define AFS_INT64_FMT "lld" #define AFS_PTR_FMT "x" +#define AFS_SIZET_FMT "u" #endif /* Functions to safely cast afs_int32 and afs_uint32 so they can be used in