Commit dddc3440 authored by Robert Haas's avatar Robert Haas

Fix format code used to print dsm request sizes.

Per report from Peter Eisentraut.
parent 21034301
...@@ -192,8 +192,9 @@ dsm_postmaster_startup(void) ...@@ -192,8 +192,9 @@ dsm_postmaster_startup(void)
} }
dsm_control = dsm_control_address; dsm_control = dsm_control_address;
on_shmem_exit(dsm_postmaster_shutdown, 0); on_shmem_exit(dsm_postmaster_shutdown, 0);
elog(DEBUG2, "created dynamic shared memory control segment %u (" elog(DEBUG2,
UINT64_FORMAT " bytes)", dsm_control_handle, segsize); "created dynamic shared memory control segment %u (%lu bytes)",
dsm_control_handle, (unsigned long) segsize);
dsm_write_state_file(dsm_control_handle); dsm_write_state_file(dsm_control_handle);
/* Initialize control segment. */ /* Initialize control segment. */
......
...@@ -329,8 +329,8 @@ dsm_impl_posix(dsm_op op, dsm_handle handle, Size request_size, ...@@ -329,8 +329,8 @@ dsm_impl_posix(dsm_op op, dsm_handle handle, Size request_size,
ereport(elevel, ereport(elevel,
(errcode_for_dynamic_shared_memory(), (errcode_for_dynamic_shared_memory(),
errmsg("could not resize shared memory segment %s to " UINT64_FORMAT " bytes: %m", errmsg("could not resize shared memory segment %s to %lu bytes: %m",
name, request_size))); name, (unsigned long) request_size)));
return false; return false;
} }
...@@ -871,8 +871,8 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size, ...@@ -871,8 +871,8 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
ereport(elevel, ereport(elevel,
(errcode_for_dynamic_shared_memory(), (errcode_for_dynamic_shared_memory(),
errmsg("could not resize shared memory segment %s to " UINT64_FORMAT " bytes: %m", errmsg("could not resize shared memory segment %s to %lu bytes: %m",
name, request_size))); name, (unsigned long) request_size)));
return false; return false;
} }
else if (*mapped_size < request_size) else if (*mapped_size < request_size)
...@@ -919,8 +919,8 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size, ...@@ -919,8 +919,8 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
ereport(elevel, ereport(elevel,
(errcode_for_dynamic_shared_memory(), (errcode_for_dynamic_shared_memory(),
errmsg("could not resize shared memory segment %s to " UINT64_FORMAT " bytes: %m", errmsg("could not resize shared memory segment %s to %lu bytes: %m",
name, request_size))); name, (unsigned long) request_size)));
return false; return false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment