Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 643f75c

Browse files
committed
Fix unportable coding in BackgroundWorkerStateChange().
PIDs aren't necessarily ints; our usual practice for printing them is to explicitly cast to long. Per buildfarm member rover_firefly.
1 parent f0ee42d commit 643f75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/bgworker.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ BackgroundWorkerStateChange(void)
303303
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
304304
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
305305
{
306-
elog(DEBUG1, "worker notification PID %u is not valid",
307-
rw->rw_worker.bgw_notify_pid);
306+
elog(DEBUG1, "worker notification PID %lu is not valid",
307+
(long) rw->rw_worker.bgw_notify_pid);
308308
rw->rw_worker.bgw_notify_pid = 0;
309309
}
310310

0 commit comments

Comments
 (0)