}
dsm_control = dsm_control_address;
on_shmem_exit(dsm_postmaster_shutdown, 0);
- elog(DEBUG2, "created dynamic shared memory control segment %u ("
- UINT64_FORMAT " bytes)", dsm_control_handle, segsize);
+ elog(DEBUG2,
+ "created dynamic shared memory control segment %u (%lu bytes)",
+ dsm_control_handle, (unsigned long) segsize);
dsm_write_state_file(dsm_control_handle);
/* Initialize control segment. */
ereport(elevel,
(errcode_for_dynamic_shared_memory(),
- errmsg("could not resize shared memory segment %s to " UINT64_FORMAT " bytes: %m",
- name, request_size)));
+ errmsg("could not resize shared memory segment %s to %lu bytes: %m",
+ name, (unsigned long) request_size)));
return false;
}
ereport(elevel,
(errcode_for_dynamic_shared_memory(),
- errmsg("could not resize shared memory segment %s to " UINT64_FORMAT " bytes: %m",
- name, request_size)));
+ errmsg("could not resize shared memory segment %s to %lu bytes: %m",
+ name, (unsigned long) request_size)));
return false;
}
else if (*mapped_size < request_size)
ereport(elevel,
(errcode_for_dynamic_shared_memory(),
- errmsg("could not resize shared memory segment %s to " UINT64_FORMAT " bytes: %m",
- name, request_size)));
+ errmsg("could not resize shared memory segment %s to %lu bytes: %m",
+ name, (unsigned long) request_size)));
return false;
}
}