• Marko Mäkelä's avatar
    MDEV-12488 Remove type mismatch in InnoDB printf-like calls · 5684aa22
    Marko Mäkelä authored
    Alias the InnoDB ulint and lint data types to size_t and ssize_t,
    which are the standard names for the machine-word-width data types.
    
    Correspondingly, define ULINTPF as "%zu" and introduce ULINTPFx as "%zx".
    In this way, better compiler warnings for type mismatch are possible.
    
    Furthermore, use PRIu64 for that 64-bit format, and define
    the feature macro __STDC_FORMAT_MACROS to enable it on Red Hat systems.
    
    Fix some errors in error messages, and replace some error messages
    with assertions.
    Most notably, an IMPORT TABLESPACE error message in InnoDB was
    displaying the number of columns instead of the mismatching flags.
    5684aa22
fil0fil.ic 4.51 KB