config-afs-ptr-format-20090320
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 20 Mar 2009 17:09:01 +0000 (17:09 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 20 Mar 2009 17:09:01 +0000 (17:09 +0000)
LICENSE IPL10

Define AFS_PTR_FMT to permit per platform printf formats for pointer
representation.

src/config/stds.h

index 4ed7ad9..3d5dfa6 100644 (file)
@@ -281,8 +281,10 @@ typedef struct afsUUID afsUUID;
  */
 #ifdef AFS_NT40_ENV
 #define AFS_INT64_FMT "l64d"
+#define AFS_PTR_FMT   "p"
 #else
 #define AFS_INT64_FMT "lld"
+#define AFS_PTR_FMT   "x"
 #endif
 
 /* Functions to safely cast afs_int32 and afs_uint32 so they can be used in