diff options
-rw-r--r-- | src/H5I.c | 2 | ||||
-rw-r--r-- | src/H5Ipublic.h | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -2414,7 +2414,7 @@ H5I__id_dump_cb(void *_item, void H5_ATTR_UNUSED *_key, void *_udata) FUNC_ENTER_STATIC_NOERR - HDfprintf(stderr, " id = %lu\n", (unsigned long)(item->id)); + HDfprintf(stderr, " id = %" PRIdHID "\n", item->id); HDfprintf(stderr, " count = %u\n", item->count); HDfprintf(stderr, " obj = 0x%08p\n", item->obj_ptr); diff --git a/src/H5Ipublic.h b/src/H5Ipublic.h index 34a408f..c0334b0 100644 --- a/src/H5Ipublic.h +++ b/src/H5Ipublic.h @@ -53,6 +53,12 @@ typedef enum H5I_type_t { /* Type of atoms to return to users */ typedef int64_t hid_t; + +#define PRIdHID PRId64 +#define PRIxHID PRIx64 +#define PRIXHID PRIX64 +#define PRIoHID PRIo64 + #define H5_SIZEOF_HID_T H5_SIZEOF_INT64_T /* An invalid object ID. This is also negative for error return. */ |