From bec8721b20c94579b13c7bbf37dcbc833f885f6a Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 15 May 2009 13:30:18 +0000 Subject: [PATCH] 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) --- src/config/stds.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/stds.h b/src/config/stds.h index bdee573051..2023fa70c4 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