Fix unportable coding in BackgroundWorkerStateChange().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 15 Feb 2014 22:15:05 +0000 (17:15 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 15 Feb 2014 22:15:05 +0000 (17:15 -0500)
PIDs aren't necessarily ints; our usual practice for printing them
is to explicitly cast to long.  Per buildfarm member rover_firefly.

src/backend/postmaster/bgworker.c

index 11fd7a5160564f17e1d6bc4a2203126679dd2afc..f65a80374c29bf96c06567e3036d180687361d58 100644 (file)
@@ -303,8 +303,8 @@ BackgroundWorkerStateChange(void)
                rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
                if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
                {
-                       elog(DEBUG1, "worker notification PID %u is not valid",
-                                rw->rw_worker.bgw_notify_pid);
+                       elog(DEBUG1, "worker notification PID %lu is not valid",
+                                (long) rw->rw_worker.bgw_notify_pid);
                        rw->rw_worker.bgw_notify_pid = 0;
                }