summaryrefslogtreecommitdiff
path: root/storage/xtradb/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-04-21 04:36:50 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-04-21 12:06:29 +0300
commit87b6df31c4ae97c09dc67e370978112fe39764bb (patch)
tree80b0fce6b0c154f7afb50fcabc88a1f02e2ad58b /storage/xtradb/include
parentd34a67b067606f61c9ec6700769770418d5bb47d (diff)
downloadmariadb-git-87b6df31c4ae97c09dc67e370978112fe39764bb.tar.gz
MDEV-12488 Remove type mismatch in InnoDB printf-like calls
This is a reduced version of an originally much larger patch. We will keep the definition of the ulint, lint data types unchanged, and we will not be replacing fprintf() calls with ib_logf(). On Windows, use the standard format strings instead of nonstandard extensions. This patch fixes some errors in format strings. Most notably, an IMPORT TABLESPACE error message in InnoDB was displaying the number of columns instead of the mismatching flags.
Diffstat (limited to 'storage/xtradb/include')
-rw-r--r--storage/xtradb/include/univ.i16
1 files changed, 7 insertions, 9 deletions
diff --git a/storage/xtradb/include/univ.i b/storage/xtradb/include/univ.i
index 7497e7f5d05..fff5c0a67a1 100644
--- a/storage/xtradb/include/univ.i
+++ b/storage/xtradb/include/univ.i
@@ -438,13 +438,12 @@ the word size of the machine, that is on a 32-bit platform 32 bits, and on a
macro ULINTPF. */
-#ifdef __WIN__
+#ifdef _WIN32
/* Use the integer types and formatting strings defined in Visual Studio. */
-# define UINT32PF "%I32u"
-# define INT64PF "%I64d"
-# define UINT64PF "%I64u"
-# define UINT64PFx "%016I64x"
-# define DBUG_LSN_PF "%llu"
+# define UINT32PF "%u"
+# define INT64PF "%lld"
+# define UINT64PF "%llu"
+# define UINT64PFx "%016llx"
typedef __int64 ib_int64_t;
typedef unsigned __int64 ib_uint64_t;
typedef unsigned __int32 ib_uint32_t;
@@ -454,13 +453,12 @@ typedef unsigned __int32 ib_uint32_t;
# define INT64PF "%" PRId64
# define UINT64PF "%" PRIu64
# define UINT64PFx "%016" PRIx64
-# define DBUG_LSN_PF UINT64PF
typedef int64_t ib_int64_t;
typedef uint64_t ib_uint64_t;
typedef uint32_t ib_uint32_t;
-# endif /* __WIN__ */
+#endif
-# define IB_ID_FMT UINT64PF
+#define IB_ID_FMT UINT64PF
#ifdef _WIN64
typedef unsigned __int64 ulint;