mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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.
This commit is contained in:
parent
d34a67b067
commit
87b6df31c4
11 changed files with 238 additions and 298 deletions
|
|
@ -419,13 +419,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;
|
||||
|
|
@ -435,13 +434,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue