H5E_PRINT2, depending on the needs of the application.
Such macros are provided to facilitate application compatibility. Their use and mappings are fully described in “API Compatibility Macros in HDF5”; we urge you to read that document closely.
When both the HDF5 Library and the application are built and installed with no specific compatibility flags,
H5Eprint is mapped to the most recent version of the function, currently